Skip to content

Commit a5d8268

Browse files
committed
Linting
1 parent 16e17e8 commit a5d8268

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/wsbuilder/wsbuilder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ func (b *Builder) checkTemplateJobStatus() error {
718718
}
719719
}
720720

721-
templateVersionJobStatus := codersdk.ProvisionerJobStatus((*templateVersionJob).JobStatus)
721+
templateVersionJobStatus := codersdk.ProvisionerJobStatus(templateVersionJob.JobStatus)
722722
switch templateVersionJobStatus {
723723
case codersdk.ProvisionerJobPending, codersdk.ProvisionerJobRunning:
724724
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 {
755755
if err != nil {
756756
return BuildError{http.StatusInternalServerError, "failed to fetch prior build", err}
757757
}
758-
if codersdk.ProvisionerJobStatus((*job).JobStatus).Active() {
758+
if codersdk.ProvisionerJobStatus(job.JobStatus).Active() {
759759
msg := "A workspace build is already active."
760760
return BuildError{
761761
http.StatusConflict,

0 commit comments

Comments
 (0)