mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-21 23:36:43 +02:00
![]() - Unify the usage of [`crypto/rand.Read`](https://pkg.go.dev/crypto/rand#Read) to `util.CryptoRandomBytes`. - Refactor `util.CryptoRandomBytes` to never return an error. It is documented by Go, https://go.dev/issue/66821, to always succeed. So if we still receive a error or if the returned bytes read is not equal to the expected bytes to be read we panic (just to be on the safe side). - This simplifies a lot of code to no longer care about error handling. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7453 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz> |
||
---|---|---|
.. | ||
artifact.go | ||
forgejo.go | ||
forgejo_test.go | ||
main_test.go | ||
run.go | ||
run_job.go | ||
run_job_list.go | ||
run_job_status_test.go | ||
run_job_test.go | ||
run_list.go | ||
runner.go | ||
runner_list.go | ||
runner_test.go | ||
runner_token.go | ||
runner_token_test.go | ||
schedule.go | ||
schedule_spec.go | ||
schedule_spec_list.go | ||
schedule_spec_test.go | ||
status.go | ||
task.go | ||
task_list.go | ||
task_output.go | ||
task_step.go | ||
tasks_version.go | ||
utils.go | ||
utils_test.go | ||
variable.go |