Skip to content

Commit

Permalink
object_settings.cpp: Remove unnecessary bool hasMusicMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
James De Ricco committed Nov 27, 2023
1 parent 731b0a4 commit 19741f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/editor/object_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ ObjectSettings::add_music(const std::string& text, std::string* value_ptr,
const std::string& license = sound_file->m_license;
const std::string& title = sound_file->m_title;

bool hasMusicMetadata = !title.empty() || !author.empty() || !license.empty();
if (!hasMusicMetadata) {
if (title.empty() && author.empty() && license.empty()) {
return "";
}

Expand Down

0 comments on commit 19741f6

Please sign in to comment.