Skip to content

Commit

Permalink
Delete repository using the helper
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked committed Jan 2, 2015
1 parent 4dd770c commit ca1ab1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ await Assert.ThrowsAsync<NotFoundException>(
}
finally
{
if (repository != null)
client.Repository.Delete(repository.Owner.Login, repository.Name);
Helper.DeleteRepo(repository);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion Octokit.Tests.Integration/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ static Helper()

public static void DeleteRepo(Repository repository)
{
DeleteRepo(repository.Owner.Login, repository.Name);
if (repository != null)
DeleteRepo(repository.Owner.Login, repository.Name);
}

public static void DeleteRepo(string owner, string name)
Expand Down

0 comments on commit ca1ab1e

Please sign in to comment.