Fixing small lints
This commit is contained in:
parent
4f5b1fa106
commit
824cb3b951
|
@ -620,9 +620,8 @@ func (cp *cwtchPeer) AddServer(serverSpecification string) (string, error) {
|
||||||
}
|
}
|
||||||
cp.SetConversationAttribute(conversationInfo.ID, attr.PublicScope.ConstructScopedZonedPath(attr.ServerKeyZone.ConstructZonedPath(string(model.BundleType))), serverSpecification)
|
cp.SetConversationAttribute(conversationInfo.ID, attr.PublicScope.ConstructScopedZonedPath(attr.ServerKeyZone.ConstructZonedPath(string(model.BundleType))), serverSpecification)
|
||||||
return onion, err
|
return onion, err
|
||||||
} else {
|
|
||||||
return "", err
|
|
||||||
}
|
}
|
||||||
|
return "", err
|
||||||
}
|
}
|
||||||
return "", model.InconsistentKeyBundleError
|
return "", model.InconsistentKeyBundleError
|
||||||
}
|
}
|
||||||
|
@ -750,9 +749,8 @@ func (cp *cwtchPeer) ImportBundle(importString string) error {
|
||||||
_, err := cp.NewContactConversation(importString, model.DefaultP2PAccessControl(), true)
|
_, err := cp.NewContactConversation(importString, model.DefaultP2PAccessControl(), true)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return ConstructResponse(importBundlePrefix, "success")
|
return ConstructResponse(importBundlePrefix, "success")
|
||||||
} else {
|
|
||||||
return ConstructResponse(importBundlePrefix, err.Error())
|
|
||||||
}
|
}
|
||||||
|
return ConstructResponse(importBundlePrefix, err.Error())
|
||||||
} else if strings.HasPrefix(importString, tofuBundlePrefix) {
|
} else if strings.HasPrefix(importString, tofuBundlePrefix) {
|
||||||
bundle := strings.Split(importString, "||")
|
bundle := strings.Split(importString, "||")
|
||||||
if len(bundle) == 2 {
|
if len(bundle) == 2 {
|
||||||
|
|
Loading…
Reference in New Issue