cmd, lib: Fix ineffectual assignments (ineffasign) and comment spelling

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3405
This commit is contained in:
Jakob Borg
2016-07-15 14:23:20 +00:00
parent e3ccc45d19
commit 3176629410
11 changed files with 25 additions and 19 deletions

View File

@@ -130,7 +130,8 @@ func main() {
log.Println("Starting TLS listener on", listen)
}
certFile, keyFile := filepath.Join(dir, "http-cert.pem"), filepath.Join(dir, "http-key.pem")
cert, err := tls.LoadX509KeyPair(certFile, keyFile)
var cert tls.Certificate
cert, err = tls.LoadX509KeyPair(certFile, keyFile)
if err != nil {
log.Fatalln("Failed to load HTTP X509 key pair:", err)
}