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/kill.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/kill.cpp')
-rw-r--r-- | src/kill.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kill.cpp b/src/kill.cpp index c846f5f5..c3b1000e 100644 --- a/src/kill.cpp +++ b/src/kill.cpp @@ -92,10 +92,9 @@ const wchar_t *kill_yank_rotate() { // Move the first element to the end. if (kill_list.empty()) { return NULL; - } else { - kill_list.splice(kill_list.end(), kill_list, kill_list.begin()); - return kill_list.front().c_str(); } + kill_list.splice(kill_list.end(), kill_list, kill_list.begin()); + return kill_list.front().c_str(); } /// Check the X clipboard. If it has been changed, add the new clipboard contents to the fish @@ -132,9 +131,8 @@ const wchar_t *kill_yank() { kill_check_x_buffer(); if (kill_list.empty()) { return L""; - } else { - return kill_list.front().c_str(); } + return kill_list.front().c_str(); } void kill_sanity_check() {} |