diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2014-01-31 10:43:53 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2014-01-31 16:04:30 +0100 |
commit | a23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25 (patch) | |
tree | cc1f151010c69698dd64ef1d4243bd3ec6830163 | |
parent | eec1d22c5aef21ad4606c79465084bbff46d42ee (diff) | |
download | erlang-a23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25.tar.gz |
asn1ct_tok: Check return value from file:close/1
This will silence a dialyzer warning for unmatched return.
-rw-r--r-- | lib/asn1/src/asn1ct_tok.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_tok.erl b/lib/asn1/src/asn1ct_tok.erl index 85199c65ec..33f4379173 100644 --- a/lib/asn1/src/asn1ct_tok.erl +++ b/lib/asn1/src/asn1ct_tok.erl @@ -36,7 +36,7 @@ process(Stream,Lno,R) -> process(io:get_line(Stream, ''), Stream,Lno+1,R). process(eof, Stream,Lno,R) -> - file:close(Stream), + ok = file:close(Stream), lists:flatten(lists:reverse([{'$end',Lno}|R])); |