Skip to content
Snippets Groups Projects
Commit 79a1dc44 authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix import ordering

parent fd8e56c9
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,10 @@ package ud
import (
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman"
pb "gitlab.com/elixxir/comms/mixmessages"
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/comms/messages"
jww "github.com/spf13/jwalterweatherman"
)
type confirmFactComm interface {
......@@ -16,14 +16,14 @@ type confirmFactComm interface {
// AddFact while the code will come over the associated communications system
func (m *Manager) SendConfirmFact(confirmationID, code string) error {
jww.INFO.Printf("ud.SendConfirmFact(%s, %s)", confirmationID, code)
if err := m.confirmFact(confirmationID, code, m.comms); err!=nil{
if err := m.confirmFact(confirmationID, code, m.comms); err != nil {
return errors.WithMessage(err, "Failed to confirm fact")
}
return nil
}
func (m *Manager) confirmFact(confirmationID, code string, comm confirmFactComm) error {
if !m.IsRegistered(){
if !m.IsRegistered() {
return errors.New("Failed to confirm fact: " +
"client is not registered")
}
......
......@@ -2,11 +2,11 @@ package ud
import (
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/comms/mixmessages"
"gitlab.com/elixxir/primitives/fact"
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/comms/messages"
jww "github.com/spf13/jwalterweatherman"
)
type removeFactComms interface {
......@@ -21,7 +21,7 @@ func (m *Manager) RemoveFact(fact fact.Fact) error {
}
func (m *Manager) removeFact(fact fact.Fact, rFC removeFactComms) error {
if !m.IsRegistered(){
if !m.IsRegistered() {
return errors.New("Failed to remove fact: " +
"client is not registered")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment