mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
feature: add redundant-test-main-exit rule (#1208)
This commit is contained in:
committed by
GitHub
parent
8c5d8fc90a
commit
5f01efa722
@@ -14,7 +14,7 @@ func TestMain(m *testing.M) {
|
||||
os.Unsetenv("USERPROFILE")
|
||||
os.Unsetenv("XDG_CONFIG_HOME")
|
||||
AppFs = afero.NewMemMapFs()
|
||||
os.Exit(m.Run())
|
||||
m.Run()
|
||||
}
|
||||
|
||||
func TestXDGConfigDirIsPreferredFirst(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user