Skip to content

Commit

Permalink
Remove string empty check in getProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Nov 25, 2024
1 parent 4f52cd2 commit 985eb14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public override string getDisplayName(string locale)

public override string getProperty(string property)
{
if (propertyStore[property] is not { } value || string.IsNullOrWhiteSpace(value))
if (propertyStore[property] is not { } value)
{
value = getDefault(property);
}
Expand Down

0 comments on commit 985eb14

Please sign in to comment.