Skip to content

Commit

Permalink
clean up extra Println linebreak
Browse files Browse the repository at this point in the history
  • Loading branch information
vito committed Sep 11, 2018
1 parent 64a2436 commit 5cb79f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hgresource/out.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package main

import (
"fmt"
"github.com/concourse/hg-resource/hg"
"io"
"io/ioutil"
"os"
"path"
"strings"
"time"

"github.com/concourse/hg-resource/hg"
)

const cmdOutName string = "out"
Expand Down Expand Up @@ -112,11 +113,11 @@ func rebaseAndPush(tempRepo *hg.Repository, params PushParams, maxRetries int, e
output, err = tempRepo.Push(params.DestUri, params.Branch)
errWriter.Write(output)
if err == nil {
fmt.Fprintf(errWriter, "pushed\n")
fmt.Fprintln(errWriter, "pushed")
return
}
if !isNonFastForwardError(string(output)) {
fmt.Fprintln(errWriter, "failed with non-rebase error\n")
fmt.Fprintln(errWriter, "failed with non-rebase error")
return
}
}
Expand Down

0 comments on commit 5cb79f1

Please sign in to comment.