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

Commit dd21f71

Browse files
committed
We probably want to fail listing locks too
1 parent 02b2b9e commit dd21f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public ITask Revert(string changeset)
120120
public ITask ListLocks()
121121
{
122122
if (repositoryManager == null)
123-
return new ActionTask(TaskExtensions.CompletedTask);
123+
return new ActionTask(new NotReadyException().ToTask<bool>());
124124
return repositoryManager.ListLocks(false);
125125
}
126126

0 commit comments

Comments
 (0)