diff --git a/stdlib/http/src/main/ballerina/src/http/cookie/cookieStore.bal b/stdlib/http/src/main/ballerina/src/http/cookie/cookieStore.bal index d40d58ec00f4..f93a54c7280c 100644 --- a/stdlib/http/src/main/ballerina/src/http/cookie/cookieStore.bal +++ b/stdlib/http/src/main/ballerina/src/http/cookie/cookieStore.bal @@ -272,7 +272,6 @@ public type CookieStore object { return err; } } - } } } diff --git a/stdlib/http/src/main/ballerina/src/http/cookie/csv_persistent_cookie_handler.bal b/stdlib/http/src/main/ballerina/src/http/cookie/csv_persistent_cookie_handler.bal index 1042704191a3..f439f9ac9e60 100644 --- a/stdlib/http/src/main/ballerina/src/http/cookie/csv_persistent_cookie_handler.bal +++ b/stdlib/http/src/main/ballerina/src/http/cookie/csv_persistent_cookie_handler.bal @@ -181,7 +181,11 @@ function readFile(string fileName) returns @tainted error | table { io:ReadableCSVChannel rCsvChannel2 = check io:openReadableCsvFile(fileName); var tblResult = rCsvChannel2.getTable(myCookie); closeReadableCSVChannel(rCsvChannel2); - return tblResult; + if (tblResult is table) { + return >tblResult; + } else { + return tblResult; + } } function closeReadableCSVChannel(io:ReadableCSVChannel csvChannel) {