diff options
author | Björn Gustavsson <[email protected]> | 2014-01-31 10:43:53 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-01-31 16:04:30 +0100 |
commit | a23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25 (patch) | |
tree | cc1f151010c69698dd64ef1d4243bd3ec6830163 /lib/asn1/src | |
parent | eec1d22c5aef21ad4606c79465084bbff46d42ee (diff) | |
download | otp-a23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25.tar.gz otp-a23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25.tar.bz2 otp-a23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25.zip |
asn1ct_tok: Check return value from file:close/1
This will silence a dialyzer warning for unmatched return.
Diffstat (limited to 'lib/asn1/src')
-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])); |