Skip to content

Commit

Permalink
simplify hyperkube prints
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Feb 20, 2015
1 parent 0810e1f commit 710157a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/hyperkube/hyperkube.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,12 @@ func (hk *HyperKube) Print(i ...interface{}) {

// Println is a convenience method to Println to the defined output
func (hk *HyperKube) Println(i ...interface{}) {
str := fmt.Sprintln(i...)
hk.Print(str)
fmt.Fprintln(hk.Out(), i...)
}

// Printf is a convenience method to Printf to the defined output
func (hk *HyperKube) Printf(format string, i ...interface{}) {
str := fmt.Sprintf(format, i...)
hk.Print(str)
fmt.Fprintf(hk.Out(), format, i...)
}

// Run the server. This will pick the appropriate server and run it.
Expand Down

0 comments on commit 710157a

Please sign in to comment.