chore: modernize code

This commit is contained in:
Michael Kriese 2025-08-14 17:01:13 +02:00
parent 159c6af0dd
commit c27206c659
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
49 changed files with 316 additions and 363 deletions

View file

@ -166,7 +166,7 @@ func (h *Handler) ExternalURL() string {
// The RunData contains the information about the repository.
// The function returns the 32-bit random key which the run will use to identify itself.
func (h *Handler) AddRun(data RunData) (string, error) {
for retries := 0; retries < 3; retries++ {
for range 3 {
key := common.MustRandName(4)
_, loaded := h.runs.LoadOrStore(key, data)
if !loaded {