Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
synhershko committed Jul 11, 2012
1 parent 086d2bc commit 65a040a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/NAppUpdate.Updater/ArgumentsParser.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions;
namespace NAppUpdate.Updater
{
Expand All @@ -20,8 +17,7 @@ protected ArgumentsParser()

public static ArgumentsParser Get()
{
if (_instance == null) _instance = new ArgumentsParser();
return _instance;
return _instance ?? (_instance = new ArgumentsParser());
}

public ArgumentsParser(string[] args)
Expand Down Expand Up @@ -64,7 +60,7 @@ public void Parse(string[] args)
}
}

private string CleanArg(string arg)
private static string CleanArg(string arg)
{
const string pattern1 = "^(.*)([=,:](true|0))";
arg = arg.ToLower();
Expand Down

0 comments on commit 65a040a

Please sign in to comment.