Skip to content

Commit

Permalink
Silence checks warning: don't try to pass difference by reference
Browse files Browse the repository at this point in the history
Code was correct, but efficiency might not matter here.
  • Loading branch information
arielshaqed committed Oct 14, 2020
1 parent ed47a62 commit 40643a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions export/tasks_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func GenerateTasksFromDiffs(exportID string, dstPrefix string, diffs catalog.Dif
toSignal []parade.TaskID
})

makeTaskForDiff := func(diff *catalog.Difference) (parade.TaskData, error) {
makeTaskForDiff := func(diff catalog.Difference) (parade.TaskData, error) {
var (
body []byte
action string
Expand Down Expand Up @@ -187,7 +187,7 @@ func GenerateTasksFromDiffs(exportID string, dstPrefix string, diffs catalog.Dif
return nil, fmt.Errorf("no \"Path\" in %+v: %w", diff, ErrMissingColumns)
}

task, err := makeTaskForDiff(&diff)
task, err := makeTaskForDiff(diff)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -233,7 +233,7 @@ func GenerateTasksFromDiffs(exportID string, dstPrefix string, diffs catalog.Dif
}

ret = append(ret, parade.TaskData{
ID: parade.TaskID(makeSuccessTaskID(successDirectory)),
ID: makeSuccessTaskID(successDirectory),
Action: TouchAction,
Body: &bodyStr,
StatusCode: parade.TaskPending,
Expand Down

0 comments on commit 40643a7

Please sign in to comment.