aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/kill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kill.cpp')
-rw-r--r--src/kill.cpp8
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() {}