Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Fix even more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CptWesley committed Oct 9, 2021
1 parent 5dec546 commit 26ba2ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/NewWorldMinimap/Caches/MarkerCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public void Populate(MapImageCache mapCache)
string stringData = http.GetAsync("https://www.newworld-map.com/markers.json").Result.Content.ReadAsStringAsync().Result;
JObject data = JObject.Parse(stringData);

PopulateResource(mapCache, data, "ores");
PopulateResource(mapCache, data, "woods");
PopulateResource(mapCache, data, "chests");
PopulateResource(mapCache, data, "plants");
PopulateResource(mapCache, data, "documents");
PopulateResource(mapCache, data, "fishing");
PopulateResource(mapCache, data, "monsters");
PopulateResource(mapCache, data, "essences");
PopulateResource(data, "ores");
PopulateResource(data, "woods");
PopulateResource(data, "chests");
PopulateResource(data, "plants");
PopulateResource(data, "documents");
PopulateResource(data, "fishing");
PopulateResource(data, "monsters");
PopulateResource(data, "essences");
}

/// <summary>
Expand Down Expand Up @@ -101,9 +101,9 @@ protected virtual void Dispose(bool disposing)
}
}

private void PopulateResource(MapImageCache mapCache, JObject data, string resourceName)
private void PopulateResource(JObject data, string resourceName)
{
JToken? category = data.GetValue(resourceName);
JToken? category = data.GetValue(resourceName, StringComparison.InvariantCulture);

if (category is null)
{
Expand Down
3 changes: 1 addition & 2 deletions src/NewWorldMinimap/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ public static class Program
/// <summary>
/// Defines the entry point of the application.
/// </summary>
/// <param name="args">The arguments.</param>
[STAThread]
public static void Main(string[] args)
public static void Main()
{
NativeMethods.SetProcessDPIAware();
Application.EnableVisualStyles();
Expand Down
1 change: 1 addition & 0 deletions src/Ruleset.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<Rule Id="CA1063" Action="Warning" />
<Rule Id="CA1065" Action="Warning" />
<Rule Id="CA1303" Action="None" />
<Rule Id="CA1307" Action="Warning" />
<Rule Id="CA1506" Action="Warning" />
<Rule Id="CA1714" Action="Warning" />
<Rule Id="CA1720" Action="None" />
Expand Down

0 comments on commit 26ba2ab

Please sign in to comment.