From 13f84d84e0b8fe2d12c356a1ed67f7c8c6e163d2 Mon Sep 17 00:00:00 2001 From: mindula Date: Mon, 22 Jul 2024 11:29:18 +0530 Subject: [PATCH] Remove unnecessary spaces --- .../compiler/semantics/analyzer/CodeAnalyzer.java | 1 - .../checked_error_return_type_mismatch_negative.bal | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java index cccc7260e629..29ea0535745e 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java @@ -3087,7 +3087,6 @@ public void visit(BLangLambdaFunction bLangLambdaFunction, AnalyzerData data) { bLangLambdaFunction.function); } } - // If this is a worker we are already in a worker action system, // if not we need to initiate a worker action system if (isWorker) { diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/expressions/checkedexpr/checked_error_return_type_mismatch_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/expressions/checkedexpr/checked_error_return_type_mismatch_negative.bal index 49eb60336d71..4955294b03df 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/expressions/checkedexpr/checked_error_return_type_mismatch_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/expressions/checkedexpr/checked_error_return_type_mismatch_negative.bal @@ -88,7 +88,7 @@ function testCheckedExprWithNoErrorType3() { function testOnFailWithCheckInLambdaFunction() { function _ = function() { do { - function _ = function () { + function _ = function() { string _ = check getVal(""); }; } on fail { @@ -103,7 +103,7 @@ function getVal(string str) returns string|error { function testOnFailWithCheckInWorkers() { string[] s = []; worker A { - s.forEach(function (string k) { + s.forEach(function(string k) { string _ = check getVal2(); }); } on fail {