lint cleanup: eliminate "redundant" errors

This removes some pointless parentheses but the primary focus is removing
redundancies like unnecessary "else" clauses.
This commit is contained in:
Kurtis Rader
2016-05-04 15:19:47 -07:00
parent 527e5f52ba
commit 79f342b954
34 changed files with 456 additions and 531 deletions

View File

@@ -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) {