Commit
+1 -4 +/-1 browse
1 | diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go |
2 | index 17bcfb9..0f6825c 100644 |
3 | --- a/pkg/cmd/cmd.go |
4 | +++ b/pkg/cmd/cmd.go |
5 | @@ -240,9 +240,6 @@ func New(config *pomo.Config) *cli.Cli { |
6 | path = app.StringOpt("p path", defaultConfigPath(), "path to the pomo config directory") |
7 | ) |
8 | app.Before = func() { |
9 | - if config == nil { |
10 | - config = &pomo.Config{} |
11 | - } |
12 | maybe(pomo.LoadConfig(*path, config)) |
13 | } |
14 | app.Version("v version", pomo.Version) |
15 | @@ -257,4 +254,4 @@ func New(config *pomo.Config) *cli.Cli { |
16 | return app |
17 | } |
18 | |
19 | - func Run() { New(nil).Run(os.Args) } |
20 | + func Run() { New(&pomo.Config{}).Run(os.Args) } |