Skip to content

Commit

Permalink
chore: Refactor database_helpers.go for improved readability and cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
waveyboym committed Aug 22, 2024
1 parent bb70d5e commit 02dd82d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions occupi-backend/pkg/database/database_helpers.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package database

import (
"time"
"strconv"
"strconv"
"strings"

"time"

"github.com/ipinfo/go/v2/ipinfo"
"github.com/umahmood/haversine"

Expand Down Expand Up @@ -78,6 +78,7 @@ func CreateAdminUser(user models.RegisterUser) models.User {
DepartmentNo: "",
ExpoPushToken: user.ExpoPushToken,

Check warning on line 79 in occupi-backend/pkg/database/database_helpers.go

View check run for this annotation

Codecov / codecov/patch

occupi-backend/pkg/database/database_helpers.go#L49-L79

Added lines #L49 - L79 were not covered by tests
}
}

func IsLocationInRange(locations []models.Location, unrecognizedLogger *ipinfo.Core) bool {
// Return true if there are no locations
Expand Down

0 comments on commit 02dd82d

Please sign in to comment.