Skip to content

Commit

Permalink
Update the .gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
DimuthuMadushan committed Mar 27, 2024
1 parent f3efdce commit ac60a8e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ hs_err_pid*

#Ballerina configuartion file
ballerina.conf
Config.toml
!/ballerina/tests/Config.toml
docker.env

# .DS_Store
Expand All @@ -48,7 +50,8 @@ accessToken.bal
temp.bal.ballerina/
target/
.DS_Store
docker.env
*.deb
examples/**/Dependencies.toml

#json files created inside resources folder
**/resources/*.json
Expand Down
2 changes: 1 addition & 1 deletion ballerina/client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public isolated client class Client {
#
# + spreadsheetConfig - Configuration for the connector
# + return - `http:Error` in case of failure to initialize or `null` if successfully initialized
public isolated function init(string serviceUrl = BASE_URL, *ConnectionConfig config) returns error? {
public isolated function init(ConnectionConfig config, string serviceUrl = BASE_URL) returns error? {
http:ClientConfiguration httpClientConfig = {...config};
self.httpClient = check new (serviceUrl, httpClientConfig);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/cell-operations/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ configurable string & readonly clientId = os:getEnv("CLIENT_ID");
configurable string & readonly clientSecret = os:getEnv("CLIENT_SECRET");
configurable string & readonly refreshUrl = gsheets:REFRESH_URL;

gsheets:Client spreadsheetClient = check new (config = {
gsheets:Client spreadsheetClient = check new ({
auth: {
clientId,
clientSecret,
Expand Down
2 changes: 1 addition & 1 deletion examples/grid-filtering/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ configurable string & readonly clientId = os:getEnv("CLIENT_ID");
configurable string & readonly clientSecret = os:getEnv("CLIENT_SECRET");
configurable string & readonly refreshUrl = gsheets:REFRESH_URL;

gsheets:Client spreadsheetClient = check new (config = {
gsheets:Client spreadsheetClient = check new ({
auth: {
clientId,
clientSecret,
Expand Down
2 changes: 1 addition & 1 deletion examples/sheet-modifying/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ gsheets:ConnectionConfig spreadsheetConfig = {
}
};

gsheets:Client spreadsheetClient = check new (config = spreadsheetConfig);
gsheets:Client spreadsheetClient = check new (spreadsheetConfig);

public function main() returns error? {
string spreadsheetId = "";
Expand Down

0 comments on commit ac60a8e

Please sign in to comment.