diff --git a/integration/copy_test.go b/integration/copy_test.go index 8362201c..39a5cea4 100644 --- a/integration/copy_test.go +++ b/integration/copy_test.go @@ -576,8 +576,7 @@ func matchLayerBlobBinaryType(c *check.C, ociImageDirPath string, contentType st func getFileContentType(out *os.File) (string, error) { buffer := make([]byte, 512) - _, err := out.Read(buffer) - if err != nil { + if _, err := out.Read(buffer); err != nil { return "", err } contentType := http.DetectContentType(buffer)