From a561ac7a0f45e7462e2c99e6b20774b4e0fcdfbd Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Sat, 11 Mar 2023 16:54:29 +0100 Subject: [PATCH] style: Formatting Signed-off-by: Vincent Boutour --- pkg/fibr/fibr.go | 2 ++ pkg/geo/geo.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/fibr/fibr.go b/pkg/fibr/fibr.go index 63b0717a..da1fb816 100644 --- a/pkg/fibr/fibr.go +++ b/pkg/fibr/fibr.go @@ -72,6 +72,7 @@ func (a App) parseRequest(r *http.Request) (provider.Request, error) { request.CanEdit = true request.CanShare = true request.CanWebhook = true + return request, nil } @@ -92,6 +93,7 @@ func (a App) parseRequest(r *http.Request) (provider.Request, error) { func parsePreferences(r *http.Request) provider.Preferences { var cookieValue string + if cookie, err := r.Cookie(provider.LayoutPathsCookieName); err == nil { cookieValue = cookie.Value } diff --git a/pkg/geo/geo.go b/pkg/geo/geo.go index b53d21fa..48809747 100644 --- a/pkg/geo/geo.go +++ b/pkg/geo/geo.go @@ -4,7 +4,6 @@ import ( "fmt" ) -// Type is a type of GeoJSON Object. type Type string const (