diff --git a/pkgs/archive/archive.go b/pkgs/archive/archive.go index 0c0a72b..4ebeaaf 100644 --- a/pkgs/archive/archive.go +++ b/pkgs/archive/archive.go @@ -64,12 +64,11 @@ func checksum(path string) (string, error) { buf := make([]byte, 64*1024) sha256 := sha256.New() fd, err := os.Open(path) - defer fd.Close() - if err != nil { log.Print("Unable to checksum: ", path) return sum, err } + defer fd.Close() // Read file in chunks for {