diff options
author | Björn Gustavsson <[email protected]> | 2015-04-17 10:09:49 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-20 12:23:16 +0200 |
commit | e25cbf9bc9577b59a3e49a54f63e8ef7894e2353 (patch) | |
tree | b0a4dccb5fdb69dce1dc1cdb77ea7d14125098d0 /lib/stdlib/src/zip.erl | |
parent | ddfbbcbbd489913120a55b2a054b046c68b40a8a (diff) | |
download | otp-e25cbf9bc9577b59a3e49a54f63e8ef7894e2353.tar.gz otp-e25cbf9bc9577b59a3e49a54f63e8ef7894e2353.tar.bz2 otp-e25cbf9bc9577b59a3e49a54f63e8ef7894e2353.zip |
zip: Suppress a dialyzer warning for an unmatched return
A warning for an unmatched return was introduced in aaa7c917.
The caller of openzip_close/1 ignores the return value, which
could be an error tuple. In this situation, handling a fatal
error, it is OK to ignore the return value; thus, we only need
to make it explicit that we are ignoring the return value.
Diffstat (limited to 'lib/stdlib/src/zip.erl')
-rw-r--r-- | lib/stdlib/src/zip.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/zip.erl b/lib/stdlib/src/zip.erl index 44e75ff15b..3c67bd67c6 100644 --- a/lib/stdlib/src/zip.erl +++ b/lib/stdlib/src/zip.erl @@ -1150,7 +1150,7 @@ server_loop(Parent, OpenZip) -> From ! {self(), OpenZip}, server_loop(Parent, OpenZip); {'EXIT', Parent, Reason} -> - openzip_close(OpenZip), + _ = openzip_close(OpenZip), exit({parent_died, Reason}); _ -> {error, bad_msg} |