We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 763fc94 commit 946e04fCopy full SHA for 946e04f
Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/GitIgnore.cs
@@ -36,9 +36,14 @@ public static async Task Create(string directory)
36
using (var stream = response.GetResponseStream())
37
{
38
39
- await stream.CopyToAsync(content);
+ if (stream != null)
40
+ {
41
- File.WriteAllBytes(path, content.ToArray());
42
+ await stream.CopyToAsync(content);
43
+
44
+ File.WriteAllBytes(path, content.ToArray());
45
46
+ }
47
48
}
49
0 commit comments