fix: ifElseChain linter finding
Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
parent
55fe81fe32
commit
c89deaeca7
1 changed files with 4 additions and 3 deletions
|
|
@ -286,11 +286,12 @@ func (p *Pool) RunnerTimeout() uint {
|
|||
}
|
||||
|
||||
func (p *Pool) PoolType() PoolType {
|
||||
if p.RepoID != "" {
|
||||
switch {
|
||||
case p.RepoID != "":
|
||||
return RepositoryPool
|
||||
} else if p.OrgID != "" {
|
||||
case p.OrgID != "":
|
||||
return OrganizationPool
|
||||
} else if p.EnterpriseID != "" {
|
||||
case p.EnterpriseID != "":
|
||||
return EnterprisePool
|
||||
}
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue