Skip to content

Commit

Permalink
src: address coverity warning in module_wrap.cc
Browse files Browse the repository at this point in the history
- remove copying as suggested by coverity

Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: #52143
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson committed Mar 25, 2024
1 parent fc02918 commit 681b0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ v8::Maybe<bool> ModuleWrap::CheckUnsettledTopLevelAwait() {
}

if (env()->options()->warnings) {
for (auto pair : stalled) {
for (auto& pair : stalled) {
Local<v8::Message> message = std::get<1>(pair);

std::string reason = "Warning: Detected unsettled top-level await at ";
Expand Down

0 comments on commit 681b0a3

Please sign in to comment.