mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Cleanup + bow down to resharper.
This commit is contained in:
parent
73e2ddaf26
commit
982dbb5bba
@ -358,7 +358,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
handleColours(beatmap, key, val, ref hasCustomColours);
|
||||
break;
|
||||
case Section.HitObjects:
|
||||
var obj = parser?.Parse(val);
|
||||
var obj = parser.Parse(val);
|
||||
|
||||
if (obj != null)
|
||||
beatmap.HitObjects.Add(obj);
|
||||
|
@ -22,8 +22,8 @@ namespace osu.Game.Modes.Objects
|
||||
type &= ~LegacyHitObjectType.NewCombo;
|
||||
|
||||
int sampleVolume = 0;
|
||||
string normalSampleBank = string.Empty;
|
||||
string addSampleBank = string.Empty;
|
||||
string normalSampleBank = null;
|
||||
string addSampleBank = null;
|
||||
|
||||
HitObject result;
|
||||
|
||||
@ -181,10 +181,10 @@ namespace osu.Game.Modes.Objects
|
||||
|
||||
string stringBank = bank.ToString().ToLower();
|
||||
if (stringBank == @"none")
|
||||
stringBank = string.Empty;
|
||||
stringBank = null;
|
||||
string stringAddBank = addbank.ToString().ToLower();
|
||||
if (stringAddBank == @"none")
|
||||
stringAddBank = string.Empty;
|
||||
stringAddBank = null;
|
||||
|
||||
normalSampleBank = stringBank;
|
||||
addSampleBank = stringAddBank;
|
||||
|
Loading…
Reference in New Issue
Block a user