diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2023-10-28 08:26:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-28 08:26:20 -0400 |
| commit | 1b226e58af4058190ce0889aa54b5c489ede554f (patch) | |
| tree | fd30d0f54edf2642605f28a40af89e28392c658b /data/datasource_git.go | |
| parent | cdb317959ba9f4e12919b60b7ebd40f2afc1b345 (diff) | |
A bunch of linting and refactorings (#1893)
Diffstat (limited to 'data/datasource_git.go')
| -rw-r--r-- | data/datasource_git.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
