diff --git a/.travis.yml b/.travis.yml index 5ecfb0f1..46e6b510 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: elixir elixir: - 1.8.2 - 1.9.4 + - 1.10.2 otp_release: - 22.2 - 21.3 diff --git a/lib/new_relic/tracer/macro.ex b/lib/new_relic/tracer/macro.ex index 6f5f8a83..d9265b4c 100644 --- a/lib/new_relic/tracer/macro.ex +++ b/lib/new_relic/tracer/macro.ex @@ -17,6 +17,7 @@ defmodule NewRelic.Tracer.Macro do # Take no action on the definition of a function head def __on_definition__(_env, _access, _name, _args, _guards, nil), do: nil + def __on_definition__(_env, _access, _name, _args, _guards, []), do: nil # Take no action if there is a top-level rescue clause def __on_definition__(env, _access, name, _args, _guards, do: _, rescue: _) do