Skip to content

Commit e83f22c

Browse files
committed
Remove unused printSuccessWithLocation helper
The webhook migration removed the only call site (Webhooks().Create returns the full struct directly, no Location follow). Drop the dead helper to satisfy the unused-code lint check.
1 parent c5d5c86 commit e83f22c

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

internal/commands/root.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -655,20 +655,6 @@ func printSuccess(data any) {
655655
}
656656
}
657657

658-
func printSuccessWithLocation(location string) {
659-
switch out.EffectiveFormat() {
660-
case output.FormatStyled:
661-
writeOutputString(renderHumanData(nil, location, false))
662-
captureResponse()
663-
case output.FormatMarkdown:
664-
writeOutputString(renderHumanData(nil, location, true))
665-
captureResponse()
666-
default:
667-
recordOutputError(out.OK(nil, output.WithContext("location", location)))
668-
captureResponse()
669-
}
670-
}
671-
672658
// breadcrumb creates a single breadcrumb.
673659
func breadcrumb(action, cmd, description string) Breadcrumb {
674660
return Breadcrumb{Action: action, Cmd: cmd, Description: description}

0 commit comments

Comments
 (0)