mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 20:55:47 +00:00
Merge branch 'feat_config' of https://github.com/Slug-Boi/cocommit into feat_config
This commit is contained in:
@@ -174,11 +174,9 @@ func Test_FindAuthorFileEnv(t *testing.T) {
|
||||
setup()
|
||||
defer teardown()
|
||||
|
||||
// Save original environment variable
|
||||
originalAuthorFile := os.Getenv("author_file")
|
||||
|
||||
defer func() {
|
||||
// Reset environment variable
|
||||
os.Setenv("author_file", originalAuthorFile)
|
||||
|
||||
if r := recover(); r == nil {
|
||||
|
||||
Reference in New Issue
Block a user