refactor(config): collapse multi-line slog call
This commit is contained in:
parent
6a0ab74411
commit
4d59013a71
1 changed files with 1 additions and 4 deletions
|
|
@ -129,10 +129,7 @@ var defaultCfg []byte
|
|||
func DefaultPath() string {
|
||||
path, err := os.UserConfigDir()
|
||||
if err != nil {
|
||||
slog.Info(
|
||||
"user config dir cannot be determined; falling back to the current dir",
|
||||
"err", err,
|
||||
)
|
||||
slog.Info("user config dir cannot be determined; falling back to the current dir", "err", err)
|
||||
path = "."
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue