[tor-commits] [meek/master] go fmt.

dcf at torproject.org dcf at torproject.org
Tue Oct 4 02:11:33 UTC 2016


commit cc6afd9bc1a3ece2048c9a5364b89f43b132c113
Author: David Fifield <david at bamsoftware.com>
Date:   Mon Oct 3 18:53:10 2016 -0700

    go fmt.
---
 appengine/reflect.go                             | 2 +-
 meek-client-torbrowser/meek-client-torbrowser.go | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/appengine/reflect.go b/appengine/reflect.go
index 93ac5d1..18d9fe6 100644
--- a/appengine/reflect.go
+++ b/appengine/reflect.go
@@ -4,8 +4,8 @@ package reflect
 
 import (
 	"io"
-	"net/http"
 	"net"
+	"net/http"
 	"net/url"
 	"time"
 
diff --git a/meek-client-torbrowser/meek-client-torbrowser.go b/meek-client-torbrowser/meek-client-torbrowser.go
index 4f3531d..729d4a3 100644
--- a/meek-client-torbrowser/meek-client-torbrowser.go
+++ b/meek-client-torbrowser/meek-client-torbrowser.go
@@ -158,7 +158,7 @@ func prepareBrowserProfile(profilePath string) error {
 	visit := func(path string, info os.FileInfo, err error) error {
 		relativePath := strings.TrimPrefix(path, templatePath)
 		if relativePath == "" {
-			return nil	// skip the root directory
+			return nil // skip the root directory
 		}
 
 		// If relativePath is a directory, create it; if it is a file, copy it.
@@ -185,12 +185,12 @@ func isBrowserProfileUpToDate(templatePath string, profilePath string) bool {
 	checksumFileName := "meek-template-sha256sum.txt"
 	templateChecksumPath := filepath.Join(templatePath, checksumFileName)
 	templateData, err := ioutil.ReadFile(templateChecksumPath)
-	if (err != nil) {
+	if err != nil {
 		return false
 	}
 	profileChecksumPath := filepath.Join(profilePath, checksumFileName)
 	profileData, err := ioutil.ReadFile(profileChecksumPath)
-	if (err != nil) {
+	if err != nil {
 		return false
 	}
 





More information about the tor-commits mailing list