Skip to content

Commit

Permalink
Fixed Warning/suggestions: set static getlistlock object as readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub authored and meee1 committed Apr 25, 2023
1 parent 685ab0f commit 4e845cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExtLibs/ArduPilot/APFirmware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public enum MAV_TYPE
SUBMARINE
}

private static object getListlock = new object();
private static readonly object getListlock = new object();

public static void GetList(string url = "https://firmware.ardupilot.org/manifest.json.gz", bool force = false)
{
Expand Down

0 comments on commit 4e845cd

Please sign in to comment.