forked from security/hakurei
internal/app/paths: defer extra formatting
This reduces payload size for params to shim. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -22,7 +22,7 @@ func printShowSystem(output io.Writer, short, flagJSON bool) {
|
||||
defer t.MustFlush()
|
||||
|
||||
info := &hst.Info{User: new(app.Hsu).MustID()}
|
||||
app.CopyPaths(&info.Paths, info.User)
|
||||
app.CopyPaths().Copy(&info.Paths, info.User)
|
||||
|
||||
if flagJSON {
|
||||
printJSON(output, short, info)
|
||||
|
||||
Reference in New Issue
Block a user