SCFProxy icon indicating copy to clipboard operation
SCFProxy copied to clipboard

Fix Error Handling and Resource Leak in path.go and root.go

Open gopkg-dev opened this issue 1 year ago • 0 comments

This pull request addresses two issues:

In path.go, replace logrus.Fatal with logrus.Fatalf to format error messages accurately. In root.go, add a conditional defer statement to ensure proper file closure after successful creation. These changes improve error handling and prevent resource leaks in the codebase.

gopkg-dev avatar Aug 08 '23 01:08 gopkg-dev