1
0
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:
smoogipooo 2017-04-06 12:27:35 +09:00
parent 73e2ddaf26
commit 982dbb5bba
2 changed files with 5 additions and 5 deletions

View File

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

View File

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