Skip to content

Commit fc729ae

Browse files
committed
Some methods, classes have been marked as static
1 parent 36014ab commit fc729ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cli/nugetswitcher.cli/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace NuGetSwitcher.CLI
1717
{
18-
internal class Program
18+
internal static class Program
1919
{
2020
public static void Main(string[] args)
2121
{

lib/nugetswitcher.interface/Provider/Option/AbstractOptionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected AbstractOptionProvider(IMessageProvider messageProvider)
4242
/// is found. Level at which the file is located is
4343
/// not taken into account.
4444
/// </summary>
45-
protected bool Contains(IEnumerable<string> excludeDirectories, string absolutePath)
45+
protected static bool Contains(IEnumerable<string> excludeDirectories, string absolutePath)
4646
{
4747
const int NOT_FOUND = -1;
4848

lib/nugetswitcher.interface/Provider/Option/Entity/FileOption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public FileOption(string includeFile, string excludeFile, string pattern) : this
4646
Pattern = pattern;
4747
}
4848

49-
private IEnumerable<string> ReadConfig(string path)
49+
private static IEnumerable<string> ReadConfig(string path)
5050
{
5151
return File.ReadAllLines(path).Where(l => !l.StartsWith("#")) ?? Enumerable.Empty<string>();
5252
}

0 commit comments

Comments
 (0)