Small performance optimization. Don't do String.Trim() second time (#26161)
Don't do Trim 2 times
This commit is contained in:
@@ -122,7 +122,7 @@ namespace Content.Server.Disposal.Tube
|
||||
if (trimmed == "")
|
||||
continue;
|
||||
|
||||
router.Tags.Add(tag.Trim());
|
||||
router.Tags.Add(trimmed);
|
||||
}
|
||||
|
||||
_audioSystem.PlayPvs(router.ClickSound, uid, AudioParams.Default.WithVolume(-2f));
|
||||
|
||||
Reference in New Issue
Block a user