summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 7e229fe..f7060bd 100644
--- a/main.go
+++ b/main.go
@@ -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...)