From 2bd3758a22131cfd6925b3fd995657b211095c90 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 1 May 2019 14:48:41 -0700 Subject: clang-tidy braces changes (#2075) Applies the changes in #2065, and temprarily disables the hook since it's too slow to run on a change this large. We should re-enable it in a later commit. --- src/tools/js-wrapper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tools/js-wrapper.h') diff --git a/src/tools/js-wrapper.h b/src/tools/js-wrapper.h index e39a015d6..32b46affa 100644 --- a/src/tools/js-wrapper.h +++ b/src/tools/js-wrapper.h @@ -83,8 +83,9 @@ static std::string generateJSWrapper(Module& wasm) { "});\n"; for (auto& exp : wasm.exports) { auto* func = wasm.getFunctionOrNull(exp->value); - if (!func) + if (!func) { continue; // something exported other than a function + } ret += "if (instance.exports.hangLimitInitializer) " "instance.exports.hangLimitInitializer();\n"; ret += "try {\n"; -- cgit v1.2.3