-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Removed the no-redeclare ESLint exclusion #1444
Conversation
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.
LGTM
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.
@dbemiller merged an updated to pubwise analytics which will require an update for this rule too, and one comment for your consideration below, otherwise LGTM
@@ -426,7 +427,7 @@ var IndexExchangeAdapter = function IndexExchangeAdapter() { | |||
_IndexRequestData.targetAggregate = {'open': {}, 'private': {}}; | |||
|
|||
if (!utils.hasValidBidRequest(bidArr[0].params, requiredParams, ADAPTER_NAME)) { | |||
for (var i = 0; i < bidArr.length; i++) { |
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.
Any thoughts on changing the var
to let
(in this loop and the one below)? i
gets scoped to the block in that case and then no need for the var i
declaration on 419
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.
much better idea ^^
* Removed the no-redeclare exclusion. * Fixed the actual style error. * Fixed the linting errors, and changed var to let for cleaner code.
* Removed the no-redeclare exclusion. * Fixed the actual style error. * Fixed the linting errors, and changed var to let for cleaner code.
* Removed the no-redeclare exclusion. * Fixed the actual style error. * Fixed the linting errors, and changed var to let for cleaner code.
Type of change
Code style update (formatting, local variables)
Description of change
Removing the no-redeclare ESLint exclusion for #1206