From 5c1389589407a82b3ae989a316dcd79cf871ff1f Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 25 Oct 2023 14:14:14 +0200 Subject: Format: Run Gofumpt --- internal/http/http.go | 2 +- internal/oauth/oauth_test.go | 1 - internal/server/profile.go | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/internal/http/http.go b/internal/http/http.go index 49e5f4f..0f56b96 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/go-errors/errors" "github.com/eduvpn/eduvpn-common/internal/version" + "github.com/go-errors/errors" ) // UserAgent is the user agent that is used for requests diff --git a/internal/oauth/oauth_test.go b/internal/oauth/oauth_test.go index 8682e24..8f5f04c 100644 --- a/internal/oauth/oauth_test.go +++ b/internal/oauth/oauth_test.go @@ -107,7 +107,6 @@ func Test_accessToken(t *testing.T) { t.Fatalf("Access token not equal, Got: %v, Want: %v", got, want) } - // Set the tokens as expired o.SetTokenExpired() want = "test3" diff --git a/internal/server/profile.go b/internal/server/profile.go index 7de944f..3a7fb08 100644 --- a/internal/server/profile.go +++ b/internal/server/profile.go @@ -1,10 +1,10 @@ package server type Profile struct { - ID string `json:"profile_id"` - DisplayName string `json:"display_name"` - VPNProtoList []string `json:"vpn_proto_list"` - DefaultGateway bool `json:"default_gateway"` + ID string `json:"profile_id"` + DisplayName string `json:"display_name"` + VPNProtoList []string `json:"vpn_proto_list"` + DefaultGateway bool `json:"default_gateway"` DNSSearchDomains []string `json:"dns_search_domain_list"` } -- cgit v1.2.3