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 == "")
|
if (trimmed == "")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
router.Tags.Add(tag.Trim());
|
router.Tags.Add(trimmed);
|
||||||
}
|
}
|
||||||
|
|
||||||
_audioSystem.PlayPvs(router.ClickSound, uid, AudioParams.Default.WithVolume(-2f));
|
_audioSystem.PlayPvs(router.ClickSound, uid, AudioParams.Default.WithVolume(-2f));
|
||||||
|
|||||||
Reference in New Issue
Block a user