Fix travis errors.

This commit is contained in:
Kyle Isom 2017-11-21 12:42:53 -08:00
parent 263a5d3973
commit 4122f01644
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,6 @@ func newName(path string) (string, error) {
func move(dst, src string, force bool) (err error) {
if fileutil.FileDoesExist(dst) && !force {
return fmt.Errorf("%s exists (pass the -f flag to overwrite)", dst)
return nil
}
dstFile, err := os.Create(dst)
if err != nil {

View File

@ -72,7 +72,7 @@ Flags:
func usageExamples() {
usage(os.Stdout)
fmt.Println(`
fmt.Printf(`
Examples (note that the examples are done in the America/Los_Angeles /
PST8PDT time zone):
@ -134,6 +134,7 @@ PST8PDT time zone):
(Converting from GMT (offset +0000) to UTC (offset +0000).)
==================================================================
2016-06-14 23:46 = 2016-06-14 23:46
`)
}

View File

@ -168,7 +168,7 @@ func TestRWByte(t *testing.T) {
}
if c != 42 {
t.Fatal("Expected 42, have %d", c)
t.Fatalf("Expected 42, have %d", c)
}
_, err = buf.ReadByte()