File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -207,21 +207,14 @@ defmodule ExDoc.Language.Source do
207
207
|> Map . new ( )
208
208
end
209
209
210
- def get_optional_callbacks ( module , type ) do
211
- optional_callbacks =
212
- type == :behaviour &&
213
- try do
214
- module . behaviour_info ( :optional_callbacks )
215
- rescue
216
- FunctionClauseError -> :undefined
217
- end
218
-
219
- case optional_callbacks do
220
- :undefined -> [ ]
221
- _ -> optional_callbacks
222
- end
210
+ def get_optional_callbacks ( module , :behaviour ) do
211
+ module . behaviour_info ( :optional_callbacks )
212
+ rescue
213
+ FunctionClauseError -> [ ]
223
214
end
224
215
216
+ def get_optional_callbacks ( _module , _type ) , do: [ ]
217
+
225
218
def find_ast ( ast , source_basedir , fun ) do
226
219
filtermap_ast ( ast , source_basedir , fun ) |> hd ( )
227
220
end
You can’t perform that action at this time.
0 commit comments