Skip to content

Commit

Permalink
Merge pull request #2063 from dmcgowan/fix-golint-error-newline
Browse files Browse the repository at this point in the history
Remove newlines from end of error strings
  • Loading branch information
dmcgowan authored Nov 14, 2016
2 parents d22e09a + 8b71d39 commit 7694c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry/storage/garbagecollect.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func MarkAndSweep(ctx context.Context, storageDriver driver.StorageDriver, regis
})

if err != nil {
return fmt.Errorf("failed to mark: %v\n", err)
return fmt.Errorf("failed to mark: %v", err)
}

// sweep
Expand All @@ -106,7 +106,7 @@ func MarkAndSweep(ctx context.Context, storageDriver driver.StorageDriver, regis
}
err = vacuum.RemoveBlob(string(dgst))
if err != nil {
return fmt.Errorf("failed to delete blob %s: %v\n", dgst, err)
return fmt.Errorf("failed to delete blob %s: %v", dgst, err)
}
}

Expand Down

0 comments on commit 7694c31

Please sign in to comment.