Explorar el Código

Merge pull request #403 from Morganamilo/fixnil

Lint
Anna hace 7 años
padre
commit
665d49f8e0
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      download.go
  2. 1 1
      parser.go

+ 1 - 1
download.go

@@ -96,7 +96,7 @@ func downloadAndUnpack(url string, path string, trim bool) (err error) {
 	if trim {
 		err = exec.Command("/bin/sh", "-c",
 			config.TarBin+" --strip-components 2 --include='*/"+fileName[:len(fileName)-7]+"/trunk/' -xf "+tarLocation+" -C "+path).Run()
-		os.Rename(filepath.Join(path, "trunk"), filepath.Join(path,fileName[:len(fileName)-7]))
+		os.Rename(filepath.Join(path, "trunk"), filepath.Join(path, fileName[:len(fileName)-7]))
 	} else {
 		err = exec.Command(config.TarBin, "-xf", tarLocation, "-C", path).Run()
 	}

+ 1 - 1
parser.go

@@ -3,11 +3,11 @@ package main
 import (
 	"bytes"
 	"fmt"
+	"html"
 	"io"
 	"os"
 	"strconv"
 	"strings"
-	"html"
 )
 
 // A basic set implementation for strings.