Skip to content

Commit

Permalink
remove redundant call to strings.TrimSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Hurst committed Dec 6, 2024
1 parent 48aaf94 commit e54d7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ func gatherPatroniInfo(ctx context.Context,
writeInfo(cmd, err.Error())
return nil
}
writeInfo(cmd, strings.TrimSpace(fmt.Sprintf("Error with patronictl list: %s: %s", err, strings.TrimSpace(stderr))))
writeInfo(cmd, fmt.Sprintf("Error with patronictl list: %s: %s", err, strings.TrimSpace(stderr)))
}

buf.Write([]byte(stdout))
Expand All @@ -1538,7 +1538,7 @@ func gatherPatroniInfo(ctx context.Context,
writeInfo(cmd, err.Error())
return nil
}
writeInfo(cmd, strings.TrimSpace(fmt.Sprintf("Error with patronictl history: %s: %s", err, strings.TrimSpace(stderr))))
writeInfo(cmd, fmt.Sprintf("Error with patronictl history: %s: %s", err, strings.TrimSpace(stderr)))
}

buf.Write([]byte(stdout))
Expand Down

0 comments on commit e54d7ea

Please sign in to comment.