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

Merged
appleboy merged 1 commits from refs/pull/289/head into main 2023-07-13 01:10:57 +00:00
1 Commits
Author SHA1 Message Date
Bo-Yi Wu 1217a5cec3 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>
2023-07-13 09:07:32 +08:00