aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-01-31 10:43:53 +0100
committerBjörn Gustavsson <[email protected]>2014-01-31 16:04:30 +0100
commita23cd17f03ba87ae4f117bd36bc5de6d4ebd4b25 (patch)
treecc1f151010c69698dd64ef1d4243bd3ec6830163 /lib
parenteec1d22c5aef21ad4606c79465084bbff46d42ee (diff)
downloadotp-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')
-rw-r--r--lib/asn1/src/asn1ct_tok.erl2
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]));