Skip to content

Commit f8d53ea

Browse files
bbalsersafwank
authored andcommitted
Refactored to be compatible with older versions of elixir
1 parent f02dd24 commit f8d53ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/retry/annotation.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ defmodule Retry.Annotation do
2828
end
2929

3030
def on_def(env, kind, name, args, guards, _body) do
31-
retry_opts = Module.get_attribute(env.module, :retry, :no_retry)
31+
retry_opts = Module.get_attribute(env.module, :retry) || :no_retry
3232

3333
unless retry_opts == :no_retry do
3434
Module.put_attribute(env.module, :retry_funs, %{

0 commit comments

Comments
 (0)