Skip to content

Commit

Permalink
Version 1.7.1: Fix possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
kevdliu committed Mar 22, 2024
1 parent c2c056d commit 8aaf8e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion anylist/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Anylist",
"version": "1.7",
"version": "1.7.1",
"init": false,
"slug": "anylist",
"description": "Anylist",
Expand Down
11 changes: 3 additions & 8 deletions anylist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ const CREDENTIALS_FILE = args["credentials-file"] || process.env.CREDENTIALS_FIL

async function initialize(onInitialized) {
let any = new AnyList({email: EMAIL, password: PASSWORD, credentialsFile: CREDENTIALS_FILE});
try {
await any.login();
await any.getLists();

return await onInitialized(any);
} finally {
any.teardown();
}
await any.login(false);
await any.getLists();
return await onInitialized(any);
}

async function getLists() {
Expand Down
2 changes: 1 addition & 1 deletion anylist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "kevdliu",
"main": "index.js",
"dependencies": {
"anylist": "0.6.0",
"anylist": "0.8.3",
"express": "4.18.2",
"minimist": "1.2.8"
},
Expand Down

0 comments on commit 8aaf8e1

Please sign in to comment.