Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
krantzinator committed Jan 15, 2021
1 parent 5c6703e commit a986825
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ func (c *UninstallCommand) Run(args []string) int {
// Generate a snapshot
if !c.skipSnapshot {
s.Update("Generating server snapshot...")

// set config snapshot name with default or flag value + timestamp
if c.snapshotName == "" {
c.snapshotName = uninstallSnapshotName
}
c.snapshotName = fmt.Sprintf("%s-%d", c.snapshotName, time.Now().Unix())

// take the snapshot
w, err := os.Create(c.snapshotName)
if err != nil {
Expand Down Expand Up @@ -206,7 +206,7 @@ func (c *UninstallCommand) Flags() *flag.Sets {

var (
uninstallSnapshotName = "waypoint-server-snapshot"
autoApproveMsg = strings.TrimSpace(`
autoApproveMsg = strings.TrimSpace(`
Uninstalling Waypoint server requires approval.
Rerun the command with -auto-approve to continue with the uninstall.
`)
Expand Down

0 comments on commit a986825

Please sign in to comment.