mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
close unclosed file
This commit is contained in:
parent
9a1b350f4e
commit
db9f3c7b99
@ -96,6 +96,7 @@ func (widget *Widget) formattedText() string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err.Error()
|
return err.Error()
|
||||||
}
|
}
|
||||||
|
defer file.Close()
|
||||||
|
|
||||||
lexer := lexers.Match(filePath)
|
lexer := lexers.Match(filePath)
|
||||||
if lexer == nil {
|
if lexer == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user