From 1d220381ebd7654316ef1c235891ec45b486f8bf Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 17 Dec 2021 22:55:25 -0500 Subject: [PATCH] fix govet --- app/app.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 78c7136..6c68e71 100644 --- a/app/app.go +++ b/app/app.go @@ -196,11 +196,10 @@ func (app *application) installProfile(profile peer.CwtchPeer) bool { app.engines[profile.GetOnion()], _ = profile.GenerateProtocolEngine(app.acn, app.eventBuses[profile.GetOnion()]) app.appBus.Publish(event.NewEvent(event.NewPeer, map[event.Field]string{event.Identity: profile.GetOnion(), event.Created: event.False})) return true - } else { - // Otherwise shutdown the connections - profile.Shutdown() - return false } + // Otherwise shutdown the connections + profile.Shutdown() + return false } // GetPrimaryBus returns the bus the Application uses for events that aren't peer specific