Skip to content

Commit

Permalink
Fix issue in csv persistent cookie handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharuja committed Jan 27, 2020
1 parent 3020a7e commit b114da7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ public type CookieStore object {
return err;
}
}

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ function readFile(string fileName) returns @tainted error | table<myCookie> {
io:ReadableCSVChannel rCsvChannel2 = check io:openReadableCsvFile(fileName);
var tblResult = rCsvChannel2.getTable(myCookie);
closeReadableCSVChannel(rCsvChannel2);
return tblResult;
if (tblResult is table<record {| anydata...; |}>) {
return <table<myCookie>>tblResult;
} else {
return tblResult;
}
}

function closeReadableCSVChannel(io:ReadableCSVChannel csvChannel) {
Expand Down

0 comments on commit b114da7

Please sign in to comment.