We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a9b5a commit da8bef9Copy full SHA for da8bef9
Tasks/Common/nuget-task-common/NuGetToolRunner.ts
@@ -156,11 +156,11 @@ export function locateNuGetExe(userNuGetExePath: string): string {
156
return toolPath;
157
}
158
159
-function isHosted() {
+function isHosted(): boolean {
160
// not an ideal way to detect hosted, but there isn't a variable for it, and we can't make network calls from here
161
// due to proxy issues.
162
const collectionUri = tl.getVariable("System.TeamFoundationCollectionUri");
163
- const isHosted = /\.visualstudio\.com$/i.test(collectionUri);
+ return /\.visualstudio\.com$/i.test(collectionUri);
164
165
166
// Currently, there is a race condition of some sort that causes nuget to not send credentials sometimes
0 commit comments