Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Oct 30, 2024
1 parent 7a75102 commit cdc1548
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions router/batchrouter/handle_async.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package batchrouter
import (
"context"
stdjson "encoding/json"
"errors"
"fmt"
"net/http"
"os"
Expand Down Expand Up @@ -180,7 +179,7 @@ func (brt *Handle) updatePollStatusToDB(

if uploadStatsResp.StatusCode != http.StatusOK {
brt.logger.Errorf("[Batch Router] Failed to fetch failed jobs for Dest Type %v with statusCode %v , error %v", brt.destType, uploadStatsResp.StatusCode, uploadStatsResp.Error)
return statusList, errors.New(fmt.Sprintf("failed to fetch failed jobs error %v", uploadStatsResp.Error))
return statusList, fmt.Errorf("failed to fetch failed jobs error %v", uploadStatsResp.Error)
}

var completedJobsList []*jobsdb.JobT
Expand Down

0 comments on commit cdc1548

Please sign in to comment.