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

1 Commits

Author SHA1 Message Date
1217a5cec3 ci(lint): refactor code for clarity and linting compliance
All checks were successful
checks / check and test (pull_request) Successful in 59s
- 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>
2023-07-13 09:07:32 +08:00