Skip to content

Commit 113502f

Browse files
author
Sascha Andres
committed
fix: set default value in early returns
1 parent 00b5264 commit 113502f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func loadConfig(fs afero.Fs) (LoadConfigReturn, error) {
4848
CommitBodyCharLimit: defaultCommitBodyCharLimit,
4949
CommitBodyLineLength: defaultCommitBodyLineLength,
5050
ShowIntro: true,
51+
AddAll: false,
5152
}, nil
5253
}
5354

@@ -64,6 +65,7 @@ func loadConfig(fs afero.Fs) (LoadConfigReturn, error) {
6465
CommitBodyCharLimit: defaultCommitBodyCharLimit,
6566
CommitBodyLineLength: defaultCommitBodyLineLength,
6667
ShowIntro: true,
68+
AddAll: false,
6769
}, fmt.Errorf("error parsing config file: %w", err)
6870
}
6971

0 commit comments

Comments
 (0)