Archived
Fix vet and lint complaints
This commit is contained in:
1 parent
a4673f3007
commit
7fdfa81fb8
6 files changed
+51
-49
No files matched your search
@@ -182,7 +182,7 @@ func (c *ProtocolClient) String() string {
|
||||
|
||||
func (c *ProtocolClient) connect() error {
|
||||
if c.URI.Scheme != "relay" {
|
||||
return fmt.Errorf("Unsupported relay schema:", c.URI.Scheme)
|
||||
return fmt.Errorf("Unsupported relay schema: %v", c.URI.Scheme)
|
||||
}
|
||||
|
||||
t0 := time.Now()
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
func GetInvitationFromRelay(uri *url.URL, id syncthingprotocol.DeviceID, certs []tls.Certificate) (protocol.SessionInvitation, error) {
|
||||
if uri.Scheme != "relay" {
|
||||
return protocol.SessionInvitation{}, fmt.Errorf("Unsupported relay scheme:", uri.Scheme)
|
||||
return protocol.SessionInvitation{}, fmt.Errorf("Unsupported relay scheme: %v", uri.Scheme)
|
||||
}
|
||||
|
||||
conn, err := tls.Dial("tcp", uri.Host, configForCerts(certs))
|
||||
|
||||
Reference in new issue
Block a user