mirror of https://github.com/ppy/osu
Resolve CA1834 inspection
"Use `StringBuilder.Append(char)` instead of `StringBuilder.Append(string)` when the input is a constant unit string"
This commit is contained in:
parent
2b0bea535e
commit
ca5de22ca5
|
@ -417,7 +417,7 @@ private string getSampleBank(IList<HitSampleInfo> samples, bool banksOnly = fals
|
|||
string sampleFilename = samples.FirstOrDefault(s => string.IsNullOrEmpty(s.Name))?.LookupNames.First() ?? string.Empty;
|
||||
int volume = samples.FirstOrDefault()?.Volume ?? 100;
|
||||
|
||||
sb.Append(":");
|
||||
sb.Append(':');
|
||||
sb.Append(FormattableString.Invariant($"{customSampleBank}:"));
|
||||
sb.Append(FormattableString.Invariant($"{volume}:"));
|
||||
sb.Append(FormattableString.Invariant($"{sampleFilename}"));
|
||||
|
|
Loading…
Reference in New Issue