refactor(register): refactor registration functions and improve logging #288

Merged
appleboy merged 1 commits from refs/pull/288/head into main 2023-07-12 14:12:18 +00:00
appleboy commented 2023-07-12 14:10:49 +00:00 (Migrated from gitea.com)
  • Remove the else clause in the registerInteractive function, and unconditionally log "Runner registered successfully."
  • Change the return value in the doRegister function from nil to ctx.Err().

Signed-off-by: Bo-Yi Wu appleboy.tw@gmail.com

- Remove the else clause in the `registerInteractive` function, and unconditionally log "Runner registered successfully." - Change the return value in the `doRegister` function from `nil` to `ctx.Err()`. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
lunny (Migrated from gitea.com) reviewed 2023-07-12 14:11:14 +00:00
lunny (Migrated from gitea.com) approved these changes 2023-07-12 14:11:59 +00:00
Sign in to join this conversation.