Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

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

Merged
merged 2 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 2 additions & 6 deletions git/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 2 additions & 10 deletions plugin/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down