-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix undefined declrations #1740
Conversation
@dvoytenko LGTM |
Resource class has a couple I believe. Is there a lint check for this by any chance? |
@cramforce there is the |
|
||
/** @private {!SizeList|null|undefined} */ | ||
this.sizeList_; | ||
this.sizeList_ = undefined; | ||
|
||
/** @private {!SizeList|null|undefined} */ |
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.
couldnt we just assign null
as the default then to simplify the types on these? (im ok w/ not changing these if it affects the actual code)
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.
nvm, looks like we explicitly check for undefined
in comparisons.
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.
correct, undefined
is a meaningful value here.
@cramforce looks like i only missed one. |
@erwinmombay ptal. let's push this through and then feel free to enable linter. |
@dvoytenko LGTM |
/cc @cramforce