From 7bab6c76599fdfd34ea9bb064d871ed2be01d4c8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 28 Nov 2022 12:50:23 +0100 Subject: Lint: Run godot fix Full command: golangci-lint run --disable-all -E godot --fix --- internal/server/api.go | 2 +- internal/server/common.go | 4 ++-- internal/server/instituteaccess.go | 2 +- internal/server/secureinternet.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'internal/server') diff --git a/internal/server/api.go b/internal/server/api.go index 559b787..eb55bd8 100644 --- a/internal/server/api.go +++ b/internal/server/api.go @@ -223,7 +223,7 @@ func APIConnectOpenVPN(server Server, profileID string, preferTCP bool) (string, return string(connectBody), pTime, nil } -// This needs no further return value as it's best effort +// This needs no further return value as it's best effort. func APIDisconnect(server Server) { _, _, _ = apiAuthorized(server, http.MethodPost, "/disconnect", nil) } diff --git a/internal/server/common.go b/internal/server/common.go index 16208eb..351b3af 100644 --- a/internal/server/common.go +++ b/internal/server/common.go @@ -10,7 +10,7 @@ import ( "github.com/eduvpn/eduvpn-common/types" ) -// The base type for servers +// The base type for servers. type ServerBase struct { URL string `json:"base_url"` DisplayName map[string]string `json:"display_name"` @@ -82,7 +82,7 @@ type ServerEndpointList struct { Token string `json:"token_endpoint"` } -// Struct that defines the json format for /.well-known/vpn-user-portal" +// Struct that defines the json format for /.well-known/vpn-user-portal". type ServerEndpoints struct { API struct { V2 ServerEndpointList `json:"http://eduvpn.org/api#2"` diff --git a/internal/server/instituteaccess.go b/internal/server/instituteaccess.go index ca37dcd..c0594a7 100644 --- a/internal/server/instituteaccess.go +++ b/internal/server/instituteaccess.go @@ -8,7 +8,7 @@ import ( "github.com/eduvpn/eduvpn-common/types" ) -// An instute access server +// An instute access server. type InstituteAccessServer struct { // An instute access server has its own OAuth Auth oauth.OAuth `json:"oauth"` diff --git a/internal/server/secureinternet.go b/internal/server/secureinternet.go index 0dc9ef1..c6a353b 100644 --- a/internal/server/secureinternet.go +++ b/internal/server/secureinternet.go @@ -10,7 +10,7 @@ import ( ) // A secure internet server which has its own OAuth tokens -// It specifies the current location url it is connected to +// It specifies the current location url it is connected to. type SecureInternetHomeServer struct { Auth oauth.OAuth `json:"oauth"` DisplayName map[string]string `json:"display_name"` @@ -122,7 +122,7 @@ func (server *SecureInternetHomeServer) addLocation( return base, nil } -// Initializes the home server and adds its own location +// Initializes the home server and adds its own location. func (server *SecureInternetHomeServer) init( homeOrg *types.DiscoveryOrganization, homeLocation *types.DiscoveryServer, -- cgit v1.2.3