I think this should be if style === "inside" && !functionExpressionWrapped

Inside means wrap the expression and not the call. Outside means wrap the call.