Fixed dumb mistake in repos cli
ci/woodpecker/push/arch unknown status Details
ci/woodpecker/push/deploy unknown status Details
ci/woodpecker/push/docker unknown status Details
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details

pull/112/head
Jef Roosens 2022-04-07 15:12:48 +02:00
parent c6d176f426
commit a5ac0b6956
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 2 deletions

View File

@ -108,11 +108,11 @@ fn get_repo_id_by_prefix(conf Config, id_prefix string) ?string {
} }
if res.len == 0 { if res.len == 0 {
eprintln('No repo found for given prefix.') return error('No repo found for given prefix.')
} }
if res.len > 1 { if res.len > 1 {
eprintln('Multiple repos found for given prefix.') return error('Multiple repos found for given prefix.')
} }
return res[0] return res[0]