diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-05-04 15:19:47 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-04 15:32:04 -0700 |
commit | 79f342b954a6f47ee3f1277a899066a654e7c330 (patch) | |
tree | a9386ce1e108a5c046276e4266e0129404fc4ea0 /src/util.cpp | |
parent | 527e5f52ba5a097a24490065fea23b4627032e4c (diff) |
lint cleanup: eliminate "redundant" errors
This removes some pointless parentheses but the primary focus is removing
redundancies like unnecessary "else" clauses.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 316bac68..80c9771a 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -50,7 +50,7 @@ int wcsfilecmp(const wchar_t *a, const wchar_t *b) { b = bend - 1; } else { int diff = towlower(*a) - towlower(*b); - if (diff != 0) return (diff > 0) ? 2 : -2; + if (diff != 0) return diff > 0 ? 2 : -2; secondary_diff = *a - *b; } |