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

@@ -40,6 +40,7 @@ func EncryptToRecipient(data []byte, recipient age.Recipient) ([]byte, error) {
result := buf.Bytes()
Debug("EncryptToRecipient completed successfully", "result_length", len(result))
return result, nil
}

View File

@@ -113,6 +113,7 @@ func (h *colorizedHandler) Handle(_ context.Context, record slog.Record) error {
}
first = false
output += fmt.Sprintf("%s=%#v", attr.Key, attr.Value.Any())
return true
})
output += "}\033[0m"
@@ -120,6 +121,7 @@ func (h *colorizedHandler) Handle(_ context.Context, record slog.Record) error {
output += "\n"
_, err := h.output.Write([]byte(output))
return err
}