Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gururajsh committed Dec 18, 2024
1 parent d891a70 commit 55cec6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions command/v7/revision_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ func (cmd RevisionCommand) Execute(_ []string) error {
cmd.UI.DisplayHeader("labels:")
labels, warnings, err := cmd.Actor.GetRevisionLabels(revision.GUID)
cmd.UI.DisplayWarnings(warnings)
if err != nil {
return err
}

if len(labels) > 0 {
cmd.displayMetaData(labels)
Expand All @@ -76,6 +79,9 @@ func (cmd RevisionCommand) Execute(_ []string) error {
cmd.UI.DisplayHeader("annotations:")
annotations, warnings, err := cmd.Actor.GetRevisionAnnotations(revision.GUID)
cmd.UI.DisplayWarnings(warnings)
if err != nil {
return err
}

if len(annotations) > 0 {
cmd.displayMetaData(annotations)
Expand Down
5 changes: 4 additions & 1 deletion integration/v7/isolated/revision_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ var _ = Describe("revision command", func() {
cmd := exec.Command("bash", "-c", "cf revision "+appName+" --version 1 | grep \"revision GUID\" | sed -e 's/.*:\\s*//' -e 's/^[ \\t]*//'")
var stdout bytes.Buffer
cmd.Stdout = &stdout
cmd.Run()
err := cmd.Run()
if err != nil {
return
}
revisionGUID := strings.TrimSpace(stdout.String())
data := map[string]interface{}{
"metadata": map[string]interface{}{
Expand Down

0 comments on commit 55cec6e

Please sign in to comment.