Skip to content

Commit 79ddf6d

Browse files
committed
Small code cleanup
1 parent 7c27ad0 commit 79ddf6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

GitVersionExe/GitPreparer.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ public void InitialiseDynamicRepositoryIfNeeded()
3232
string CalculateTemporaryRepositoryPath(string targetUrl)
3333
{
3434
var userTemp = Path.GetTempPath();
35-
var repositoryName = targetUrl.EndsWith(".git") ?
36-
targetUrl.Split('/', '\\').Last().Replace(".git", string.Empty) :
37-
targetUrl.Split('/', '\\').Last();
35+
var repositoryName = targetUrl.Split('/', '\\').Last().Replace(".git", string.Empty);
3836
var possiblePath = Path.Combine(userTemp, repositoryName);
3937

4038
// Verify that the existing directory is ok for us to use

0 commit comments

Comments
 (0)