mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45: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()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
|
|
||||||
// Save original environment variable
|
|
||||||
originalAuthorFile := os.Getenv("author_file")
|
originalAuthorFile := os.Getenv("author_file")
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
// Reset environment variable
|
|
||||||
os.Setenv("author_file", originalAuthorFile)
|
os.Setenv("author_file", originalAuthorFile)
|
||||||
|
|
||||||
if r := recover(); r == nil {
|
if r := recover(); r == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user