Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect NuGet version and adjust behavior by per-version quirks #2336

Merged
merged 6 commits into from
Aug 26, 2016

Conversation

jmyersmsft
Copy link
Member

No description provided.

@bryanmacfarlane
Copy link
Contributor

Be aware we forked for 105 which is RC2 and RTM. So port if you need in Dev15

@jmyersmsft
Copy link
Member Author

@bryanmacfarlane will do.


function versionIsInRange(version: VersionInfoVersion, range: VersionRange): boolean {
const beginComparison = VersionInfoVersion.compare(version, range.begin);
const endComparison = VersionInfoVersion.compare(range.end, version);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swap arguments and use < below

@jmyersmsft
Copy link
Member Author

I will do a tslint pass immediately after this PR

@jmyersmsft
Copy link
Member Author

@zarenner @phil-hodgson

I've added the following commits with PR feedback

3aef404

8750d9e?w=1

(the ?w=1 makes it ignore whitespace in the diff)

} finally {
if (typeof file === "string") {
// we opened the file, so we're responsible for closing it
await readableFile.closeAsync();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add guard for readable file not being null?
if (typeof file === "string" && readableFile) {....}

@phil-hodgson
Copy link
Member

:shipit: (with comments)

@jmyersmsft jmyersmsft merged commit 617430a into microsoft:master Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants