diff options
| author | ewy <ewy0@protonmail.com> | 2026-06-06 20:20:41 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-06-06 20:20:41 +0200 |
| commit | fc9d57a500e522ce254f34681c67c6b2f3300cd8 (patch) | |
| tree | 101a9993e10c981a040f8321908e81e92371bbbd /main.go | |
| parent | a51c16ec4a1470549e3070d62a71386ea1aa5431 (diff) | |
remove a bunch of unnecessary pointer manip
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -95,7 +95,7 @@ func mode[T any](list ModeMap[T], fire func(mode T) *spool.ExitCode) *spool.Exit return nil } -func pik() spool.ExitCode { +func pik() *spool.ExitCode { // initialize the flags outside the main method so it can re-run in case // pik changes its own configuration at runtime @@ -106,14 +106,14 @@ func pik() spool.ExitCode { return mode() }) if code != nil { - return *code + return code } code = mode(statelessModes, func(mode func() *spool.ExitCode) *spool.ExitCode { return mode() }) if code != nil { - return *code + return code } syncInitializers.RunSync(func(initializer model.Initializer) error { @@ -177,7 +177,7 @@ func pik() spool.ExitCode { return mode(st) }) if code != nil { - return *code + return code } args := pflag.Args() @@ -240,7 +240,7 @@ func pik() spool.ExitCode { return mode(st, result.Source, result.Target) }) if code != nil { - return *code + return code } err = run.Run(result.Source, result.Target, result.Args...) |
