-
Notifications
You must be signed in to change notification settings - Fork 816
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: @typescript-eslint/no-floating-promises #11665
fix: @typescript-eslint/no-floating-promises #11665
Conversation
please run e2e. |
Codecov Report
@@ Coverage Diff @@
## dev #11665 +/- ##
==========================================
- Coverage 50.22% 50.21% -0.02%
==========================================
Files 705 705
Lines 34072 34083 +11
Branches 6993 7001 +8
==========================================
+ Hits 17114 17116 +2
- Misses 15478 15486 +8
- Partials 1480 1481 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
do { | ||
const { value, done: doneResult } = await asyncIterator.next(); | ||
done = doneResult; | ||
if (done) { | ||
break; | ||
} | ||
this.sendMessage(connectionContext, id, MESSAGE_TYPES.GQL_DATA, value); | ||
} | ||
} while (!done); |
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.
I don't know if we should use a do-while loop pattern in this case. The previous way seems cleaner and there's not many other do-while loops in our codebase
import { | ||
addMapResource, addMapResourceHeadless, removeMapResource, updateMapResource, updateMapResourceHeadless, | ||
} from './map'; | ||
import { addMapResource, addMapResourceHeadless, removeMapResource, updateMapResource, updateMapResourceHeadless } from './map'; |
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.
how come the imports in this file aren't separated by new lines?
invokeAnalyticsAPIGetResources, | ||
invokeAnalyticsPush, | ||
} from './plugin-client-api-analytics'; | ||
import { invokeAnalyticsAPICreateResource, invokeAnalyticsAPIGetResources, invokeAnalyticsPush } from './plugin-client-api-analytics'; |
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.
same question here
stack: deepestException.stack ?? 'undefined error stack', | ||
})), | ||
() => | ||
executeHooks( |
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.
I think this should be async/awaited?
resources.concat(resourcesToBeDeleted).filter((r: { service: string }) => r.service === AmplifySupportedService.LAMBDA_LAYER).length > | ||
0 | ||
) { |
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.
This formatting is a bit weird
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.
a few nits, none of which are blocking the PR
Description of changes
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.