diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-18 11:42:44 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-18 11:42:44 +0200 |
commit | a1086ac00ece8044b4055047aaac2f912a5ca18e (patch) | |
tree | 902a18bad02dc318b61744abb4d01c704a1196ff /lib/xmerl/src/xmerl_eventp.erl | |
parent | 02288f2c754c8d54d138a736fbada68706bf035e (diff) | |
parent | 7153dd1f8baa77a6b2c2b29df56a2d0c41fa770b (diff) | |
download | otp-a1086ac00ece8044b4055047aaac2f912a5ca18e.tar.gz otp-a1086ac00ece8044b4055047aaac2f912a5ca18e.tar.bz2 otp-a1086ac00ece8044b4055047aaac2f912a5ca18e.zip |
Merge branch 'egil/xmerl/fix-unmatched_return/OTP-13595'
* egil/xmerl/fix-unmatched_return/OTP-13595:
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. |