Skip to content

Commit

Permalink
PVS 114: useless check.
Browse files Browse the repository at this point in the history
We return a few line above if err is != 0.
  • Loading branch information
pulkomandy committed Jul 26, 2015
1 parent 0e17424 commit 7895cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kits/storage/mime/SnifferRules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ SnifferRules::GuessMimeType(BFile* file, const void *buffer, int32 length,
// wrap the buffer by a BMemoryIO
BMemoryIO data(buffer, length);

if (!err && !fHaveDoneFullBuild)
if (!fHaveDoneFullBuild)
err = BuildRuleList();

// first ask the MIME sniffer for a suitable type
Expand Down

0 comments on commit 7895cfc

Please sign in to comment.