Skip to content

Commit

Permalink
Small performance optimization. Don't do String.Trim() second time (#…
Browse files Browse the repository at this point in the history
…26161)

Don't do Trim 2 times
  • Loading branch information
CrafterKolyan authored and DangerRevolution committed Mar 20, 2024
1 parent 7cd910c commit af01779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Disposal/Tube/DisposalTubeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void OnUiAction(EntityUid uid, DisposalRouterComponent router, SharedDis
if (trimmed == "")
continue;

router.Tags.Add(tag.Trim());
router.Tags.Add(trimmed);
}

_audioSystem.PlayPvs(router.ClickSound, uid, AudioParams.Default.WithVolume(-2f));
Expand Down

0 comments on commit af01779

Please sign in to comment.