fix: don't check for contains before replace

This commit is contained in:
Anna 2022-05-10 23:57:52 -04:00
parent 0f22f7c4ae
commit d64db95416
1 changed files with 1 additions and 3 deletions

View File

@ -24,9 +24,7 @@ internal static class Util {
// //
// break; // break;
case TextPayload txt: case TextPayload txt:
if (txt.Text.Contains(name)) { txt.Text = txt.Text.Replace(name, replacement);
txt.Text = txt.Text.Replace(name, replacement);
}
break; break;
} }