Remove newlines from end of error strings

Golint now checks for new lines at the end of go error strings,
remove these unneeded new lines.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2016-11-14 14:03:01 -08:00
parent d22e09a668
commit 8b71d39c34
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB

View file

@ -80,7 +80,7 @@ func MarkAndSweep(ctx context.Context, storageDriver driver.StorageDriver, regis
}) })
if err != nil { if err != nil {
return fmt.Errorf("failed to mark: %v\n", err) return fmt.Errorf("failed to mark: %v", err)
} }
// sweep // sweep
@ -106,7 +106,7 @@ func MarkAndSweep(ctx context.Context, storageDriver driver.StorageDriver, regis
} }
err = vacuum.RemoveBlob(string(dgst)) err = vacuum.RemoveBlob(string(dgst))
if err != nil { 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)
} }
} }