Skip to content

Commit 0792306

Browse files
committed
Stop having unreachable code
1 parent 4e18d03 commit 0792306

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GithubProvider/GithubProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,18 @@ private static async Task<object> directoryDelegate(string path, object input)
159159
case (PathType.User):
160160
{
161161
await Static.Client.Repository.Create(repo);
162+
PathInfo.PathInfoCache.Remove(parentInfo.VirtualPath);
162163
return repoInfo;
163164
}
164165
case (PathType.Org):
165166
{
166167
await Static.Client.Repository.Create(repoInfo.Org, repo);
168+
PathInfo.PathInfoCache.Remove(parentInfo.VirtualPath);
167169
return repoInfo;
168170
}
169171
default:
170172
throw new Exception("Given path is neither a repository nor a folder and cannot be created."); //TODO
171173
}
172-
PathInfo.PathInfoCache.Remove(parentInfo.VirtualPath);
173174
}
174175

175176
}

0 commit comments

Comments
 (0)