fix: break long lines to 77 characters in non-test files

Break long lines in function signatures and strings to comply with
77 character preference by using multi-line formatting and extracting
variables where appropriate.
This commit is contained in:
2025-06-20 09:17:45 -07:00
parent fd125c5fe1
commit 5d973f76ec
3 changed files with 15 additions and 4 deletions

View File

@@ -161,7 +161,8 @@ func (cli *Instance) Init(cmd *cobra.Command) error {
}
// Write encrypted long-term private key
if err := afero.WriteFile(cli.fs, filepath.Join(unlockerDir, "longterm.age"), encryptedLtPrivKey, secret.FilePerms); err != nil {
ltPrivKeyPath := filepath.Join(unlockerDir, "longterm.age")
if err := afero.WriteFile(cli.fs, ltPrivKeyPath, encryptedLtPrivKey, secret.FilePerms); err != nil {
return fmt.Errorf("failed to write encrypted long-term private key: %w", err)
}