Skip to content

Commit 681b0a3

Browse files
committed
src: address coverity warning in module_wrap.cc
- 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>
1 parent fc02918 commit 681b0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ v8::Maybe<bool> ModuleWrap::CheckUnsettledTopLevelAwait() {
128128
}
129129

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

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

0 commit comments

Comments
 (0)