1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

close unclosed file

This commit is contained in:
Daanikus 2019-10-22 17:00:43 +13:00
parent 9a1b350f4e
commit db9f3c7b99

View File

@ -96,6 +96,7 @@ func (widget *Widget) formattedText() string {
if err != nil {
return err.Error()
}
defer file.Close()
lexer := lexers.Match(filePath)
if lexer == nil {