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/function.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/function.cpp')
-rw-r--r-- | src/function.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/function.cpp b/src/function.cpp index 7d0b797b..f717a16f 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -230,9 +230,8 @@ static const function_info_t *function_get(const wcstring &name) { function_map_t::iterator iter = loaded_functions.find(name); if (iter == loaded_functions.end()) { return NULL; - } else { - return &iter->second; } + return &iter->second; } bool function_get_definition(const wcstring &name, wcstring *out_definition) { |