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:
Nikolai Korolev 2024-03-15 21:49:09 +00:00 committed by Debug
parent 98ea628ed2
commit 8a3b0f6d13
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 1 additions and 1 deletions

View File

@ -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));