summaryrefslogtreecommitdiff
path: root/src/rebar_prv_xref.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-11-20 21:40:54 -0500
committerGitHub <noreply@github.com>2016-11-20 21:40:54 -0500
commit8c4da25be01969d2392ed8229cccfda42316c306 (patch)
treec10cd279eacf1a2af637d42f8b2a876da991c7a3 /src/rebar_prv_xref.erl
parentca0995b73b104964ab20ceed440aa323976cbc09 (diff)
parente85cf555e24b2a4b9b8681b9028c87826a2c0ea6 (diff)
Merge pull request #1381 from ferd/fix-dialyzer-warnings
Fix rebar3 dialyzer warnings
Diffstat (limited to 'src/rebar_prv_xref.erl')
-rw-r--r--src/rebar_prv_xref.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_xref.erl b/src/rebar_prv_xref.erl
index 3d74c9a..c4e72e7 100644
--- a/src/rebar_prv_xref.erl
+++ b/src/rebar_prv_xref.erl
@@ -273,7 +273,7 @@ find_function_source(M, F, A, Bin) ->
AbstractCode = beam_lib:chunks(Bin, [abstract_code]),
{ok, {M, [{abstract_code, {raw_abstract_v1, Code}}]}} = AbstractCode,
%% Extract the original source filename from the abstract code
- [{attribute, 1, file, {Source, _}} | _] = Code,
+ [{attribute, _, file, {Source, _}} | _] = Code,
%% Extract the line number for a given function def
Fn = [E || E <- Code,
safe_element(1, E) == function,