0
0
mirror of https://github.com/thegeeklab/wp-git-action.git synced 2024-11-09 17:10:41 +00:00

chore(deps): update dependency golangci/golangci-lint to v1.52.0 (#48)

This commit is contained in:
renovate[bot] 2023-03-20 09:16:54 +01:00 committed by GitHub
parent 7d9524d080
commit 0fd32ffb01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 17 deletions

View File

@ -1,7 +1,7 @@
# renovate: datasource=github-releases depName=mvdan/gofumpt
GOFUMPT_PACKAGE_VERSION := v0.4.0
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_PACKAGE_VERSION := v1.51.2
GOLANGCI_LINT_PACKAGE_VERSION := v1.52.0
EXECUTABLE := drone-git-action

View File

@ -54,15 +54,11 @@ func WriteSSHKey(privateKey string) error {
privpath := filepath.Join(sshpath, "id_rsa")
if err := os.WriteFile(
return os.WriteFile(
privpath,
[]byte(privateKey),
strictFilePerm,
); err != nil {
return err
}
return nil
)
}
// WriteNetrc writes the netrc file.

View File

@ -188,11 +188,7 @@ func (p *Plugin) handleInit() error {
return nil
}
if err := execute(git.Init(p.settings.Repo)); err != nil {
return err
}
return nil
return execute(git.Init(p.settings.Repo))
}
// HandleClone clones remote.
@ -211,11 +207,7 @@ func (p *Plugin) handleClone() error {
return err
}
if err := execute(git.CheckoutHead(p.settings.Repo)); err != nil {
return err
}
return nil
return execute(git.CheckoutHead(p.settings.Repo))
}
// HandleCommit commits changes locally.