From 79f342b954a6f47ee3f1277a899066a654e7c330 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Wed, 4 May 2016 15:19:47 -0700 Subject: lint cleanup: eliminate "redundant" errors This removes some pointless parentheses but the primary focus is removing redundancies like unnecessary "else" clauses. --- src/function.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/function.cpp') 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) { -- cgit v1.2.3