From 04454efa726d0e4274290c83dc6179e08d019503 Mon Sep 17 00:00:00 2001 From: davidot Date: Sun, 3 Oct 2021 13:58:52 +0200 Subject: [PATCH] LibJS: Fix improper usages of forward as flagged by SonarCloud --- Userland/Libraries/LibJS/AST.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/AST.h b/Userland/Libraries/LibJS/AST.h index 224e85299b..def672b0bb 100644 --- a/Userland/Libraries/LibJS/AST.h +++ b/Userland/Libraries/LibJS/AST.h @@ -146,7 +146,7 @@ public: template IteratorOrVoidFunction(CallableType&& callable) requires(VoidFunction) : Function([callable = forward(callable)](Args... args) { - callable(forward(args)...); + callable(args...); return IterationDecision::Continue; }) {