Close file

pull/262/head
CallanTaylor 2019-11-19 13:57:25 +13:00
parent d5488f8aa3
commit 592c39fb1d
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ func ReadAllFromFile(filePath string) ([]byte, error) {
if err != nil {
return nil, err
}
defer f.Close()
return ioutil.ReadAll(f)
}