Fix errors.Is with errors.New() never matching in checker (closes #12) #17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-12"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
errors.Is(err, errors.New("file does not exist")) can never match because errors.New creates a unique value each time. Replace with os.ErrNotExist which is the standard Go sentinel for file-not-found errors. Fixes both mfer/checker.go and internal/checker/checker.go.Checkout
From your project repository, check out a new branch and test the changes.