Skip to content

Commit

Permalink
fix: close file (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 20, 2024
1 parent 6c91060 commit 67749ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func CatFile(filepath string, limit int64, content *string) (isPath bool, err er
if err != nil {
return false, err
}
defer f.Close()
fi, err := f.Stat()
if err != nil {
return false, err
Expand Down

0 comments on commit 67749ad

Please sign in to comment.