Skip to content

Commit 9d16458

Browse files
V2ServerAPICalls: fix unnecessary and in FindVersionGlobbing w/ Artifactory (#1644)
1 parent 4237d15 commit 9d16458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code/V2ServerAPICalls.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ private string FindVersionGlobbing(string packageName, VersionRange versionRange
11521152
// Single case where version is "*" (or "[,]") and includePrerelease is true, then we do not want to add "$filter" to the requestUrl.
11531153

11541154
// Note: could be null/empty if Version was "*" -> [,]
1155-
filterQuery += $"{andOperator}{versionFilterParts}";
1155+
filterQuery += $"{(filterQuery.EndsWith("=") ? String.Empty : andOperator)}{versionFilterParts}";
11561156
}
11571157

11581158
string paginationParam = $"$inlinecount=allpages&$skip={skip}";

0 commit comments

Comments
 (0)