Skip to content

Commit

Permalink
cmd/thanos: clean gosimple S1039 (thanos-io#2464)
Browse files Browse the repository at this point in the history
Signed-off-by: Davor Kapsa <[email protected]>
  • Loading branch information
dvrkps authored Apr 18, 2020
1 parent 762d1ad commit b5f96ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/thanos/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func runCompact(
}

if err := compact.ApplyRetentionPolicyByResolution(ctx, logger, bkt, sy.Metas(), retentionByResolution, blocksMarkedForDeletion); err != nil {
return errors.Wrap(err, fmt.Sprintf("retention failed"))
return errors.Wrap(err, "retention failed")
}

// No need to resync before partial uploads and delete marked blocks. Last sync should be valid.
Expand Down
2 changes: 1 addition & 1 deletion cmd/thanos/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func regCommonTracingFlags(app *kingpin.Application) *extflag.PathOrContent {
return extflag.RegisterPathOrContent(
app,
"tracing.config",
fmt.Sprintf("YAML file with tracing configuration. See format details: https://thanos.io/tracing.md/#configuration "),
"YAML file with tracing configuration. See format details: https://thanos.io/tracing.md/#configuration ",
false,
)
}
Expand Down

0 comments on commit b5f96ee

Please sign in to comment.