diff --git a/ud/confirmFact.go b/ud/confirmFact.go index b715a620d19af1c3f3cdb9f4c25599334f70c277..a625e7e6337d8facc4cff7096d078ee53b264a7d 100644 --- a/ud/confirmFact.go +++ b/ud/confirmFact.go @@ -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") } diff --git a/ud/remove.go b/ud/remove.go index d679a1abd479230ae2baa9e6dc59a6d49c07fcd5..966609c6e2f8c26ad0f3478356e03b1f462bf02f 100644 --- a/ud/remove.go +++ b/ud/remove.go @@ -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") }