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_sax_parser.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_sax_parser.erl')
-rw-r--r-- | lib/xmerl/src/xmerl_sax_parser.erl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/xmerl/src/xmerl_sax_parser.erl b/lib/xmerl/src/xmerl_sax_parser.erl index 196baacda7..318a0cf7f4 100644 --- a/lib/xmerl/src/xmerl_sax_parser.erl +++ b/lib/xmerl/src/xmerl_sax_parser.erl @@ -32,17 +32,13 @@ %%---------------------------------------------------------------------- %% External exports %%---------------------------------------------------------------------- --export([ - file/2, - stream/2 - ]). +-export([file/2, + stream/2]). %%---------------------------------------------------------------------- %% Internal exports %%---------------------------------------------------------------------- --export([ - default_continuation_cb/1 - ]). +-export([default_continuation_cb/1]). %%---------------------------------------------------------------------- %% Macros @@ -81,7 +77,7 @@ file(Name,Options) -> {current_location, CL}, {entity, File} |Options]), - file:close(FD), + ok = file:close(FD), Res end. |