[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit cc6afd9bc1a3ece2048c9a5364b89f43b132c113
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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
 	}
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits