From 1b226e58af4058190ce0889aa54b5c489ede554f Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 28 Oct 2023 08:26:20 -0400 Subject: A bunch of linting and refactorings (#1893) --- data/datasource_git.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'data/datasource_git.go') diff --git a/data/datasource_git.go b/data/datasource_git.go index 5c12da4c..02df14be 100644 --- a/data/datasource_git.go +++ b/data/datasource_git.go @@ -54,8 +54,7 @@ func readGit(ctx context.Context, source *Source, args ...string) ([]byte, error return out, err } -type gitsource struct { -} +type gitsource struct{} func (g gitsource) parseArgURL(arg string) (u *url.URL, err error) { if strings.HasPrefix(arg, "//") { @@ -136,7 +135,7 @@ func (g gitsource) parseGitPath(u *url.URL, args ...string) (out *url.URL, p str return out, p, err } -// nolint: interfacer +//nolint:interfacer func cloneURL(u *url.URL) *url.URL { out, _ := url.Parse(u.String()) return out -- cgit v1.2.3