Address simple linter issues

This commit is contained in:
Ian Davis
2022-11-24 16:32:27 +00:00
parent ca3b7c3bcf
commit 9f85d3dca7
15 changed files with 25 additions and 30 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ func ExtractTar(body io.Reader, dir string, buf []byte) (int64, error) {
sz, found := CacheFileConstraints[header.Name]
if !found {
return read, xerrors.Errorf("tar file %#v isn't expected")
return read, xerrors.Errorf("tar file %#v isn't expected", header.Name)
}
if header.Size > sz {
return read, xerrors.Errorf("tar file %#v is bigger than expected: %d > %d", header.Name, header.Size, sz)