From 213515db3b38a9fc1435c55e4c8fe12ee88236bc Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Mon, 28 Nov 2022 11:18:00 +0000 Subject: [PATCH] Fix formatting --- Analysis/src/TypeInfer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Analysis/src/TypeInfer.cpp b/Analysis/src/TypeInfer.cpp index 6a0b013f..30eb7ea2 100644 --- a/Analysis/src/TypeInfer.cpp +++ b/Analysis/src/TypeInfer.cpp @@ -4141,12 +4141,14 @@ std::optional> TypeChecker::checkCallOverload(const Sc if (const MetatableTypeVar* mttv = get(fn)) { callTy = getIndexTypeFromType(scope, mttv->metatable, "__call", expr.func->location, /* addErrors= */ false); - } else if (const ClassTypeVar* ctv = get(fn); FFlag::LuauCallableClasses && ctv && ctv->metatable) + } + else if (const ClassTypeVar* ctv = get(fn); FFlag::LuauCallableClasses && ctv && ctv->metatable) { callTy = getIndexTypeFromType(scope, *ctv->metatable, "__call", expr.func->location, /* addErrors= */ false); } - if (callTy) { + if (callTy) + { // Construct arguments with 'self' added in front TypePackId metaCallArgPack = addTypePack(TypePackVar(TypePack{args->head, args->tail}));