Skip to content

Commit

Permalink
Use bitwise OR for hasMutated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondyr committed Sep 10, 2024
1 parent b6ed687 commit a0ad98f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/src/Designer/Services/Implementation/TextsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,7 @@ private async Task UpdateKeysInLayoutsInLayoutSet(string org, string app, string
{
foreach (TextIdMutation mutation in keyMutations)
{
if (UpdateKeyInLayoutObject(layoutObject, mutation))
{
hasMutated = true;
}
hasMutated |= UpdateKeyInLayoutObject(layoutObject, mutation);
}
}

Expand Down

0 comments on commit a0ad98f

Please sign in to comment.