Skip to content

Commit

Permalink
fix: lukaslint
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Malkmus <[email protected]>
  • Loading branch information
bahlo and lukasmalkmus committed Jun 12, 2024
1 parent 4682dd6 commit 68cb276
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmd/dataset/dataset_trim.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ func runTrim(ctx context.Context, opts *trimOptions) error {
stop := opts.IO.StartActivityIndicator()
defer stop()

err = client.Datasets.Trim(ctx, opts.Name, opts.Duration)
if err != nil {
if err = client.Datasets.Trim(ctx, opts.Name, opts.Duration); err != nil {
return err
}

Expand Down

0 comments on commit 68cb276

Please sign in to comment.