Use else-if instead
Signed-off-by: Veith M. Bürgerhoff <veith.buergerhoff@gmail.com>
This commit is contained in:
@@ -53,8 +53,7 @@ export const repoPickerValidation = (
|
||||
'Incomplete repository location provided, project not provided',
|
||||
);
|
||||
}
|
||||
}
|
||||
if (integrationApi?.byHost(host)?.type === 'azure') {
|
||||
} else if (integrationApi?.byHost(host)?.type === 'azure') {
|
||||
if (!searchParams.get('project')) {
|
||||
validation.addError(
|
||||
'Incomplete repository location provided, project not provided',
|
||||
|
||||
Reference in New Issue
Block a user