Skip to content

Commit

Permalink
headers were still printing when no targets were found
Browse files Browse the repository at this point in the history
Signed-off-by: David Lawrence <[email protected]> (github: endophage)
  • Loading branch information
David Lawrence committed Nov 15, 2015
1 parent ebc41c8 commit d0b3bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/notary/tuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ func (t targetsSorter) Less(i, j int) bool {
// root keys and then the signing keys.
func prettyPrintTargets(ts []*notaryclient.Target, writer io.Writer) {
if len(ts) == 0 {
writer.Write([]byte("No targets present in this repository.\n"))
writer.Write([]byte("\nNo targets present in this repository.\n\n"))
return
}

sort.Stable(targetsSorter(ts))
Expand Down

0 comments on commit d0b3bd2

Please sign in to comment.