Skip to content

Commit

Permalink
Use the value from the map
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Nov 19, 2023
1 parent c01a05d commit 3632a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ var runCmd = &cobra.Command{
TimeFormat: config.If[string](
config.Exists[string, string](config.TimeFormats, cfg.TimeFormat),
config.TimeFormats[cfg.TimeFormat],
config.DefaultTimeFormat,
config.TimeFormats[config.DefaultTimeFormat],
),
ConsoleTimeFormat: config.If[string](
config.Exists[string, string](
config.ConsoleTimeFormats, cfg.ConsoleTimeFormat),
config.ConsoleTimeFormats[cfg.ConsoleTimeFormat],
config.DefaultConsoleTimeFormat,
config.ConsoleTimeFormats[config.DefaultConsoleTimeFormat],
),
NoColor: cfg.NoColor,
FileName: cfg.FileName,
Expand Down

0 comments on commit 3632a09

Please sign in to comment.