act/pkg/runner
Eng Zer Jun 8a9e4f9f38
refactor: remove unnecessary nil check in RunContext (#1955)
From the Go docs:

  "For a nil slice, the number of iterations is 0" [1]

Therefore, an additional nil check for `job.RunsOn()` before the loop is
unnecessary because `job.RunsOn()` returns a `[]string`.

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-09 12:41:12 +00:00
..
res Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
testdata feat: cmd support for windows (#1941) 2023-08-08 15:44:25 +00:00
action.go refactor: docker build BuildContext field (#1914) 2023-08-08 15:02:11 +00:00
action_cache.go feat: Add new Action Cache (#1913) 2023-08-08 16:07:23 +00:00
action_cache_test.go feat: Add new Action Cache (#1913) 2023-08-08 16:07:23 +00:00
action_composite.go fix: environment handling windows (host mode) (#1732) 2023-04-18 18:09:57 +00:00
action_test.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
command.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
command_test.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
container_mock_test.go chore: Remove obsolete Container.UpdateFromPath (#1631) 2023-02-16 16:11:26 +00:00
expression.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
expression_test.go feature: Add support for github action variables (#1833) 2023-06-10 18:09:27 +00:00
job_executor.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
job_executor_test.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
logger.go Add new CLI flag to log just the job id and not the entire job name (#1920) 2023-07-19 21:45:44 +00:00
reusable_workflow.go fix: remove hardcoded reference to github.com when using reusable remote workflows and remote actions (#1784) 2023-05-03 15:46:28 +00:00
run_context.go refactor: remove unnecessary nil check in RunContext (#1955) 2023-08-09 12:41:12 +00:00
run_context_test.go fix: correct ref and ref_name (#1672) 2023-03-09 20:03:13 +00:00
runner.go Add new CLI flag to log just the job id and not the entire job name (#1920) 2023-07-19 21:45:44 +00:00
runner_test.go feat: cmd support for windows (#1941) 2023-08-08 15:44:25 +00:00
step.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
step_action_local.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
step_action_local_test.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
step_action_remote.go fix: remove hardcoded reference to github.com when using reusable remote workflows and remote actions (#1784) 2023-05-03 15:46:28 +00:00
step_action_remote_test.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
step_docker.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
step_docker_test.go refactor: GITHUB_ENV command / remove env.PATH (#1503) 2023-02-04 13:35:13 +00:00
step_factory.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_factory_test.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_run.go feat: cmd support for windows (#1941) 2023-08-08 15:44:25 +00:00
step_run_test.go chore: use new style octal (#1630) 2023-02-16 15:34:51 +00:00
step_test.go fix: environment handling windows (host mode) (#1732) 2023-04-18 18:09:57 +00:00