Skip to content

Commit da8bef9

Browse files
committed
PR feedback
1 parent 49a9b5a commit da8bef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tasks/Common/nuget-task-common/NuGetToolRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ export function locateNuGetExe(userNuGetExePath: string): string {
156156
return toolPath;
157157
}
158158

159-
function isHosted() {
159+
function isHosted(): boolean {
160160
// not an ideal way to detect hosted, but there isn't a variable for it, and we can't make network calls from here
161161
// due to proxy issues.
162162
const collectionUri = tl.getVariable("System.TeamFoundationCollectionUri");
163-
const isHosted = /\.visualstudio\.com$/i.test(collectionUri);
163+
return /\.visualstudio\.com$/i.test(collectionUri);
164164
}
165165

166166
// Currently, there is a race condition of some sort that causes nuget to not send credentials sometimes

0 commit comments

Comments
 (0)