-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Conversation
Be aware we forked for 105 which is RC2 and RTM. So port if you need in Dev15 |
@bryanmacfarlane will do. |
|
||
function versionIsInRange(version: VersionInfoVersion, range: VersionRange): boolean { | ||
const beginComparison = VersionInfoVersion.compare(version, range.begin); | ||
const endComparison = VersionInfoVersion.compare(range.end, version); |
There was a problem hiding this comment.
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
I will do a tslint pass immediately after this PR |
I've added the following commits with PR feedback (the |
} finally { | ||
if (typeof file === "string") { | ||
// we opened the file, so we're responsible for closing it | ||
await readableFile.closeAsync(); |
There was a problem hiding this comment.
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) {....}
(with comments) |
No description provided.