Skip to content

Commit

Permalink
fix: close flles
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Apr 17, 2024
1 parent 9a370c7 commit dc63353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/codegen/pcl/binder_component.go
Expand Up @@ -159,6 +159,7 @@ func ComponentProgramBinderFromFileSystem() ComponentProgramBinder {
diagnostics = diagnostics.Append(errorf(nodeRange, err.Error()))
return nil, diagnostics, err
}
defer file.Close()

err = parser.ParseFile(file, fileName)
if err != nil {
Expand Down

0 comments on commit dc63353

Please sign in to comment.