From f884b3df2762a1bd3799441e06659b9caad4ee6c Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 28 Nov 2022 14:57:12 +0100 Subject: Linter: Fix dupword errors --- internal/config/config.go | 2 +- internal/http/http.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/config/config.go b/internal/config/config.go index 96ce742..6761d62 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -34,7 +34,7 @@ func (config *Config) filename() string { } // Save saves a structure 'readStruct' to the configuration -// If it was unusuccessful, an an error is returned. +// If it was unusuccessful, an error is returned. func (config *Config) Save(readStruct interface{}) error { errorMessage := "failed saving configuration" configDirErr := util.EnsureDirectory(config.Directory) diff --git a/internal/http/http.go b/internal/http/http.go index 5f3d783..1d0ec45 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -111,7 +111,7 @@ func MethodWithOpts( ) (http.Header, []byte, error) { // Make sure the url contains all the parameters // This can return an error, - // it already has the right error so so we don't wrap it further + // it already has the right error so we don't wrap it further url, urlErr := optionalURL(url, opts) if urlErr != nil { // No further type wrapping is needed here -- cgit v1.2.3