Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 869133b

Browse files
committed
Ooops this needs initializing
1 parent 3e4a2b0 commit 869133b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/GitHub.Api/IO/NiceIO.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,23 @@ public static IFileSystem FileSystem
11131113
}
11141114
}
11151115

1116-
private static FSWrapper FSWrapper { get; set; }
1116+
private static FSWrapper _fsWrapper;
1117+
private static FSWrapper FSWrapper
1118+
{
1119+
get
1120+
{
1121+
if (_fsWrapper == null)
1122+
{
1123+
// this will initialize both FileSystem and FSWrapper
1124+
var fs = FileSystem;
1125+
}
1126+
return _fsWrapper;
1127+
}
1128+
set
1129+
{
1130+
_fsWrapper = value;
1131+
}
1132+
}
11171133

11181134
private static bool? _isUnix;
11191135
internal static bool IsUnix

0 commit comments

Comments
 (0)