diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-17 15:45:41 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-17 15:49:21 +0200 |
commit | 7153dd1f8baa77a6b2c2b29df56a2d0c41fa770b (patch) | |
tree | 1b91cdc0c95924f3223dc938e25ed42c1ac6b58c /lib/xmerl/src/xmerl_eventp.erl | |
parent | 0545c22c9c07c55569e067c57ec184f018a54947 (diff) | |
download | otp-7153dd1f8baa77a6b2c2b29df56a2d0c41fa770b.tar.gz otp-7153dd1f8baa77a6b2c2b29df56a2d0c41fa770b.tar.bz2 otp-7153dd1f8baa77a6b2c2b29df56a2d0c41fa770b.zip |
xmerl: Fix unmatched return warnings
Diffstat (limited to 'lib/xmerl/src/xmerl_eventp.erl')
-rw-r--r-- | lib/xmerl/src/xmerl_eventp.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmerl/src/xmerl_eventp.erl b/lib/xmerl/src/xmerl_eventp.erl index 598d26261d..2cb76abc6e 100644 --- a/lib/xmerl/src/xmerl_eventp.erl +++ b/lib/xmerl/src/xmerl_eventp.erl @@ -199,7 +199,7 @@ cont2(F, Exception, Sofar, Fd, Fname, T, S) -> find_good_split(list_to_binary([Sofar,Bin]), F,Exception,Fd,Fname,T,S); eof -> - file:close(Fd), + ok = file:close(Fd), NewS = xmerl_scan:cont_state([{Fname, eof}|T], S), F(binary_to_list(Sofar), NewS); Error -> @@ -319,7 +319,7 @@ close(S) -> [{_Fname, eof}|T] -> xmerl_scan:cont_state(T, S); [{_Sofar, _Fname, Fd}|T] -> - file:close(Fd), + ok = file:close(Fd), xmerl_scan:cont_state(T, S) end. |