From a34a1eb8d280f8abc7c2cbab9d4b7b30b5709cb0 Mon Sep 17 00:00:00 2001 From: SimpleStation14 <130339894+SimpleStation14@users.noreply.github.com> Date: Sat, 11 May 2024 21:02:18 -0700 Subject: [PATCH] Mirror: Small performance optimization. Don't do String.Trim() second time (#219) ## Mirror of PR #26161: [Small performance optimization. Don't do String.Trim() second time](https://github.com/space-wizards/space-station-14/pull/26161) from space-wizards [space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14) ###### `3425444c5383f73c830f6299885e44cb4bcab46a` PR opened by CrafterKolyan at 2024-03-15 21:45:04 UTC --- PR changed 1 files with 1 additions and 1 deletions. The PR had the following labels: ---

Original Body

> ## About the PR > Super small performance optimization > > ## Technical details > Obvious change
Co-authored-by: SimpleStation14 --- Content.Server/Disposal/Tube/DisposalTubeSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Disposal/Tube/DisposalTubeSystem.cs b/Content.Server/Disposal/Tube/DisposalTubeSystem.cs index b7d8455d85..20aa8b6d2c 100644 --- a/Content.Server/Disposal/Tube/DisposalTubeSystem.cs +++ b/Content.Server/Disposal/Tube/DisposalTubeSystem.cs @@ -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));