From 02dd82d030f89b486d5c9dd7e174ec7722c9f891 Mon Sep 17 00:00:00 2001 From: Michael-u21546551 Date: Thu, 22 Aug 2024 09:46:50 +0200 Subject: [PATCH] chore: Refactor database_helpers.go for improved readability and consistency --- occupi-backend/pkg/database/database_helpers.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/occupi-backend/pkg/database/database_helpers.go b/occupi-backend/pkg/database/database_helpers.go index 3b8ddb11..e6987456 100644 --- a/occupi-backend/pkg/database/database_helpers.go +++ b/occupi-backend/pkg/database/database_helpers.go @@ -1,10 +1,10 @@ package database import ( - "time" - "strconv" + "strconv" "strings" - + "time" + "github.com/ipinfo/go/v2/ipinfo" "github.com/umahmood/haversine" @@ -78,6 +78,7 @@ func CreateAdminUser(user models.RegisterUser) models.User { DepartmentNo: "", ExpoPushToken: user.ExpoPushToken, } +} func IsLocationInRange(locations []models.Location, unrecognizedLogger *ipinfo.Core) bool { // Return true if there are no locations