Small performance optimization. Don't do String.Trim() second time (#26161)
Don't do Trim 2 times (cherry picked from commit 3425444c5383f73c830f6299885e44cb4bcab46a)
This commit is contained in:
parent
98ea628ed2
commit
8a3b0f6d13
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue