From 71e5823170e39d5337ecbd504911b4147bafe188 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 8 Mar 2022 13:28:22 -0600 Subject: Cleanup: Clang tidy --- source/blender/editors/space_outliner/outliner_draw.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc index 53de7d582b6..04d4da5e62f 100644 --- a/source/blender/editors/space_outliner/outliner_draw.cc +++ b/source/blender/editors/space_outliner/outliner_draw.cc @@ -2348,10 +2348,8 @@ static BIFIconID tree_element_get_icon_from_id(const ID *id) if (text->filepath == nullptr || (text->flags & TXT_ISMEM)) { return ICON_FILE_TEXT; } - else { - /* Helps distinguish text-based formats like the file-browser does. */ - return (BIFIconID)ED_file_extension_icon(text->filepath); - } + /* Helps distinguish text-based formats like the file-browser does. */ + return (BIFIconID)ED_file_extension_icon(text->filepath); } case ID_GR: return ICON_OUTLINER_COLLECTION; -- cgit v1.2.3