From 58d12553577a98f4371ebfd0f9409a2f03ab9543 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 18 Nov 2021 08:51:33 +0000 Subject: [PATCH] Remove unneeded returns --- api.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api.go b/api.go index 2c4f989..d11971b 100644 --- a/api.go +++ b/api.go @@ -308,8 +308,6 @@ func (h *Headscale) handleMachineLogOut( return } ctx.Data(http.StatusOK, "application/json; charset=utf-8", respBody) - - return } func (h *Headscale) handleMachineValidRegistration( @@ -345,8 +343,6 @@ func (h *Headscale) handleMachineValidRegistration( machineRegistrations.WithLabelValues("update", "web", "success", machine.Namespace.Name). Inc() ctx.Data(http.StatusOK, "application/json; charset=utf-8", respBody) - - return } func (h *Headscale) handleMachineExpired( @@ -396,8 +392,6 @@ func (h *Headscale) handleMachineExpired( machineRegistrations.WithLabelValues("new", "web", "success", machine.Namespace.Name). Inc() ctx.Data(http.StatusOK, "application/json; charset=utf-8", respBody) - - return } func (h *Headscale) handleMachineRefreshKey(