CI cleanups.

This commit is contained in:
smoogipooo
2017-05-03 12:58:46 +09:00
parent 71acf1c57d
commit 7de36b7aa2
3 changed files with 15 additions and 30 deletions

View File

@ -25,9 +25,9 @@ namespace osu.Game.Rulesets.Mania.UI
public ManiaPlayfield(int columns)
{
if (columns > 9)
throw new ArgumentException($@"{columns} columns is not supported.");
throw new ArgumentException($"{columns} columns is not supported.");
if (columns <= 0)
throw new ArgumentException($@"Can't have zero or fewer columns.");
throw new ArgumentException("Can't have zero or fewer columns.");
Children = new Drawable[]
{
@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Mania.UI
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
var columnColours = new Color4[]
Color4[] columnColours = new[]
{
colours.RedDark,
colours.GreenDark,
@ -73,7 +73,7 @@ namespace osu.Game.Rulesets.Mania.UI
int columnCount = Columns.Children.Count();
int halfColumns = columnCount / 2;
var keys = new Key[] { Key.A, Key.S, Key.D, Key.F, Key.Space, Key.J, Key.K, Key.L, Key.Semicolon };
Key[] keys = new[] { Key.A, Key.S, Key.D, Key.F, Key.Space, Key.J, Key.K, Key.L, Key.Semicolon };
for (int i = 0; i < halfColumns; i++)
{