Skip to content

Commit f49cc6f

Browse files
committed
Use field keyword in one case.
1 parent 94c43ee commit f49cc6f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Farkle/Properties/Resources.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ internal static class Resources
1616
{
1717
private static readonly bool s_usingResourceKeys = AppContext.TryGetSwitch("System.Resources.UseSystemResourceKeys", out bool usingResourceKeys) && usingResourceKeys;
1818

19-
private static ResourceManager? s_resourceManager;
20-
21-
public static ResourceManager ResourceManager => s_resourceManager ??= new ResourceManager("Farkle.Resources", typeof(Resources).Assembly);
19+
public static ResourceManager ResourceManager => field ??= new ResourceManager("Farkle.Resources", typeof(Resources).Assembly);
2220

2321
// This method is used to decide if we need to append the exception message
2422
// parameters to the message when calling SR.Format. By default it returns

0 commit comments

Comments
 (0)