Skip to content

Commit

Permalink
fix: close flles
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Apr 17, 2024
1 parent 9a370c7 commit cbf6b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/codegen/pcl/binder_component.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func ComponentProgramBinderFromFileSystem() ComponentProgramBinder {
}

err = parser.ParseFile(file, fileName)
contract.IgnoreError(file.Close())
if err != nil {
diagnostics = diagnostics.Append(errorf(nodeRange, err.Error()))
return nil, diagnostics, err
Expand Down

0 comments on commit cbf6b59

Please sign in to comment.