SCFProxy
SCFProxy copied to clipboard
Fix Error Handling and Resource Leak in path.go and root.go
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.