ci(lint): refactor code for clarity and linting compliance #289

Merged
lunny merged 1 commits from appleboy/act_runner:lint into main 2023-07-13 01:10:57 +00:00
Member
  • Removed deadcode, structcheck, and varcheck linters from .golangci.yml
  • Fixed a typo in a comment in daemon.go
  • Renamed defaultActionsUrl to defaultActionsURL in exec.go
  • Removed unnecessary else clause in exec.go and runner.go
  • Simplified variable initialization in exec.go
  • Changed function name from getHttpClient to getHTTPClient in http.go
  • Removed unnecessary else clause in labels_test.go

Signed-off-by: Bo-Yi Wu appleboy.tw@gmail.com

- Removed `deadcode`, `structcheck`, and `varcheck` linters from `.golangci.yml` - Fixed a typo in a comment in `daemon.go` - Renamed `defaultActionsUrl` to `defaultActionsURL` in `exec.go` - Removed unnecessary else clause in `exec.go` and `runner.go` - Simplified variable initialization in `exec.go` - Changed function name from `getHttpClient` to `getHTTPClient` in `http.go` - Removed unnecessary else clause in `labels_test.go` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
appleboy added 1 commit 2023-07-13 01:08:47 +00:00
ci(lint): refactor code for clarity and linting compliance
- Removed `deadcode`, `structcheck`, and `varcheck` linters from `.golangci.yml`
- Fixed a typo in a comment in `daemon.go`
- Renamed `defaultActionsUrl` to `defaultActionsURL` in `exec.go`
- Removed unnecessary else clause in `exec.go` and `runner.go`
- Simplified variable initialization in `exec.go`
- Changed function name from `getHttpClient` to `getHTTPClient` in `http.go`
- Removed unnecessary else clause in `labels_test.go`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
All checks were successful
checks / check and test (pull_request) Successful in 59s
1217a5cec3
appleboy requested review from lunny 2023-07-13 01:09:11 +00:00
appleboy requested review from wolfogre 2023-07-13 01:09:12 +00:00
appleboy added the
kind
refactor
label 2023-07-13 01:09:58 +00:00
lunny approved these changes 2023-07-13 01:10:07 +00:00
lunny merged commit db662b3690 into main 2023-07-13 01:10:57 +00:00
appleboy deleted branch lint 2023-07-13 01:12:53 +00:00
Sign in to join this conversation.
No description provided.