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
1 Commits
Author SHA1 Message Date
Bo-Yi Wu b8b449d5cf refactor(register): refactor registration functions and improve logging
- 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>
2023-07-12 22:10:19 +08:00