Browse Source

Close file

pull/1510/head
CallanTaylor 5 years ago
parent
commit
8affab1a2b
  1. 2
      assets/assets.go

2
assets/assets.go

@ -55,6 +55,7 @@ func ReadFile(file string) (content string, err error) {
if err != nil {
return content, err
}
defer file.Close()
buf, err := ioutil.ReadAll(file)
if err != nil {
return content, err
@ -65,6 +66,7 @@ func ReadFile(file string) (content string, err error) {
if err != nil {
return content, err
}
defer file.Close()
buf, err := ioutil.ReadAll(file)
if err != nil {
return content, err

Loading…
Cancel
Save