File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ func (b *Builder) checkTemplateJobStatus() error {
718
718
}
719
719
}
720
720
721
- templateVersionJobStatus := codersdk .ProvisionerJobStatus (( * templateVersionJob ) .JobStatus )
721
+ templateVersionJobStatus := codersdk .ProvisionerJobStatus (templateVersionJob .JobStatus )
722
722
switch templateVersionJobStatus {
723
723
case codersdk .ProvisionerJobPending , codersdk .ProvisionerJobRunning :
724
724
msg := fmt .Sprintf ("The provided template version is %s. Wait for it to complete importing!" , templateVersionJobStatus )
@@ -755,7 +755,7 @@ func (b *Builder) checkRunningBuild() error {
755
755
if err != nil {
756
756
return BuildError {http .StatusInternalServerError , "failed to fetch prior build" , err }
757
757
}
758
- if codersdk .ProvisionerJobStatus (( * job ) .JobStatus ).Active () {
758
+ if codersdk .ProvisionerJobStatus (job .JobStatus ).Active () {
759
759
msg := "A workspace build is already active."
760
760
return BuildError {
761
761
http .StatusConflict ,
You can’t perform that action at this time.
0 commit comments