From 6d5b21b7352f471dd9a208114b9608614e2f1727 Mon Sep 17 00:00:00 2001 From: chavacava Date: Sat, 1 Oct 2022 04:40:15 +0000 Subject: [PATCH] fix #2537 by removing redundant conditional branch --- server/events/event_parser.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/events/event_parser.go b/server/events/event_parser.go index 194e5344c8..3d8dc6550a 100644 --- a/server/events/event_parser.go +++ b/server/events/event_parser.go @@ -923,10 +923,8 @@ func (e *EventParser) ParseAzureDevopsRepo(adRepo *azuredevops.GitRepository) (m if strings.Contains(uri.Host, "visualstudio.com") { owner = strings.Split(uri.Host, ".")[0] - } else if strings.Contains(uri.Host, "dev.azure.com") { - owner = strings.Split(uri.Path, "/")[1] } else { - owner = strings.Split(uri.Path, "/")[1] // to support owner for self hosted + owner = strings.Split(uri.Path, "/")[1] } }