From 79a1dc44802c737b27bc66ab995a98b77663979a Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Fri, 12 Feb 2021 09:53:34 -0800 Subject: [PATCH] Fix import ordering --- ud/confirmFact.go | 6 +++--- ud/remove.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ud/confirmFact.go b/ud/confirmFact.go index b715a620d..a625e7e63 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 d679a1abd..966609c6e 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") } -- GitLab