mirror of https://github.com/perkeep/perkeep.git
fix: close file
This commit is contained in:
parent
4ba112378f
commit
bb15e6eb48
|
@ -29,6 +29,7 @@ func showMIME(file string) {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer f.Close()
|
||||
mime, _ := magic.MIMETypeFromReader(f)
|
||||
fmt.Println(mime)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue