Skip to content

Commit e3f917a

Browse files
committed
type; remove nolint
1 parent 62362fc commit e3f917a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

jobs_client.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// nolint:errcheck
21
package modzy
32

43
import (
@@ -15,7 +14,7 @@ import (
1514
)
1615

1716
type JobsClient interface {
18-
// GetJobDetails will get the deatils of a job
17+
// GetJobDetails will get the details of a job
1918
GetJobDetails(ctx context.Context, input *GetJobDetailsInput) (*GetJobDetailsOutput, error)
2019
// ListJobsHistory will list job history. This supports paging, filtering and sorting.
2120
ListJobsHistory(ctx context.Context, input *ListJobsHistoryInput) (*ListJobsHistoryOutput, error)
@@ -191,12 +190,12 @@ func (c *standardJobsClient) SubmitJobFile(ctx context.Context, input *SubmitJob
191190
// uploading the inputs failed, close the job
192191
_, _ = jobActions.Cancel(ctx)
193192
return nil, errors.WithMessage(chunkErr, "job canceled due to failure to upload data")
194-
} else {
195-
// close the job since everything is posted
196-
closeURL := fmt.Sprintf("/api/jobs/%s/close", response.JobIdentifier)
197-
if _, err := c.baseClient.requestor.Post(ctx, closeURL, nil, nil); err != nil {
198-
return nil, errors.WithMessage(err, "failed to close open job after successfully uploading inputs")
199-
}
193+
}
194+
195+
// close the job since everything is posted
196+
closeURL := fmt.Sprintf("/api/jobs/%s/close", response.JobIdentifier)
197+
if _, err := c.baseClient.requestor.Post(ctx, closeURL, nil, nil); err != nil {
198+
return nil, errors.WithMessage(err, "failed to close open job after successfully uploading inputs")
200199
}
201200

202201
return &SubmitJobFileOutput{

0 commit comments

Comments
 (0)