fix: correctly detect that there is no vcs in request_vcs_status
This commit is contained in:
parent
8e2cbce9b0
commit
de8c6eec56
1 changed files with 2 additions and 1 deletions
|
|
@ -833,7 +833,8 @@ pub fn request_vcs_status(self: *Self, from: tp.pid_ref) RequestError!void {
|
||||||
self.status_request = from.clone();
|
self.status_request = from.clone();
|
||||||
},
|
},
|
||||||
.failed => return,
|
.failed => return,
|
||||||
else => return error.InvalidVcsStatusRequest,
|
.done => if (self.workspace == null) return,
|
||||||
|
.none => return error.InvalidVcsStatusRequest,
|
||||||
},
|
},
|
||||||
.running => {
|
.running => {
|
||||||
if (self.status_request) |_| return;
|
if (self.status_request) |_| return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue