Skip to content

Commit

Permalink
menu_filesystem: Remove condition statement for set_help(string) call
Browse files Browse the repository at this point in the history
Condition is superfluous in this case.
  • Loading branch information
James De Ricco committed Dec 5, 2023
1 parent 19741f6 commit 08ca4ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gui/menu_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ FileSystemMenu::refresh_items()
{
ItemAction& entry = add_entry(item_id, item);
const std::string help_text = m_generate_help_text_for_file ? m_generate_help_text_for_file(FileSystem::join(m_directory, item)) : "";

if (!help_text.empty()) {
entry.set_help(help_text);
}
entry.set_help(help_text);

item_id++;
}
Expand Down

0 comments on commit 08ca4ec

Please sign in to comment.