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: nodejs#52143
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson authored and rdw-msft committed Mar 26, 2024
1 parent 5786d9b commit 939aa8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
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 939aa8d

Please sign in to comment.