fix: add blank lines before return statements (nlreturn)

Fix nlreturn linting issues by adding blank lines before return
statements in cli and secret packages.
This commit is contained in:
2025-06-20 09:37:56 -07:00
parent dcc15008cd
commit 2a1e0337fd
10 changed files with 40 additions and 0 deletions

View File

@@ -38,11 +38,13 @@ func newVaultListCmd() *cobra.Command {
jsonOutput, _ := cmd.Flags().GetBool("json")
cli := NewCLIInstance()
return cli.ListVaults(cmd, jsonOutput)
},
}
cmd.Flags().Bool("json", false, "Output in JSON format")
return cmd
}
@@ -83,6 +85,7 @@ func newVaultImportCmd() *cobra.Command {
}
cli := NewCLIInstance()
return cli.VaultImport(cmd, vaultName)
},
}
@@ -147,6 +150,7 @@ func (cli *Instance) CreateVault(cmd *cobra.Command, name string) error {
}
cmd.Printf("Created vault '%s'\n", vlt.GetName())
return nil
}
@@ -157,6 +161,7 @@ func (cli *Instance) SelectVault(cmd *cobra.Command, name string) error {
}
cmd.Printf("Selected vault '%s' as current\n", name)
return nil
}