aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/event.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-04 15:19:47 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-04 15:32:04 -0700
commit79f342b954a6f47ee3f1277a899066a654e7c330 (patch)
treea9386ce1e108a5c046276e4266e0129404fc4ea0 /src/event.cpp
parent527e5f52ba5a097a24490065fea23b4627032e4c (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/event.cpp')
-rw-r--r--src/event.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 26579101..3f5d05b9 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -229,9 +229,8 @@ static wcstring event_desc_compact(const event_t &event) {
}
if (event.function_name.size()) {
return format_string(L"%ls: \"%ls\"", res.c_str(), event.function_name.c_str());
- } else {
- return res;
}
+ return res;
}
void event_add_handler(const event_t &event) {