Skip to content

Commit 812ccb6

Browse files
authored
Fix err check against nil (kdomanski#4)
1 parent 00eb28a commit 812ccb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/extract.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func extract(f *iso9660.File, targetPath string) error {
3434
if err == nil {
3535
defer existing.Close()
3636
s, err := existing.Stat()
37-
if err == nil {
37+
if err != nil {
3838
return err
3939
}
4040

0 commit comments

Comments
 (0)