-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use t.Fatal instead of t.Error
This commit changes instances of t.Error followed by an immediate return with t.Fatal, where valid. Up until today I thought that t.Fatal didn't run defers. I was [wrong](#386 (comment)) as @dominikh pointed out.
- Loading branch information
Tomás Senart
committed
Apr 10, 2019
1 parent
8c061dc
commit 7bf09f4
Showing
2 changed files
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters