Skip to content

Commit 5575fed

Browse files
sean-r-williamsalerickson
authored andcommitted
V2ServerAPICalls: fix unnecessary and in FindVersionGlobbing w/ Artifactory (#1644)
1 parent 0a13812 commit 5575fed

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
@@ -1130,7 +1130,7 @@ private string FindVersionGlobbing(string packageName, VersionRange versionRange
11301130
// Single case where version is "*" (or "[,]") and includePrerelease is true, then we do not want to add "$filter" to the requestUrl.
11311131

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

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

0 commit comments

Comments
 (0)