From 2cef0a4c419650744a6724d5723cdd11f74857ea Mon Sep 17 00:00:00 2001 From: Meeeeow Date: Sat, 2 Dec 2017 23:56:22 +0800 Subject: [PATCH] fix: :bug: extra argument after rebase --- src/lib/local-storage.js | 1 - src/lib/storage.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/local-storage.js b/src/lib/local-storage.js index 2ca6ac964..fbb591bf5 100644 --- a/src/lib/local-storage.js +++ b/src/lib/local-storage.js @@ -588,7 +588,6 @@ class Storage implements IStorage { /** * Retrieve a package by name. * @param {*} name - * @param {*} options * @param {*} callback * @return {Function} */ diff --git a/src/lib/storage.js b/src/lib/storage.js index 81330f513..b6458f10f 100644 --- a/src/lib/storage.js +++ b/src/lib/storage.js @@ -368,7 +368,7 @@ class Storage { * @property {function} options.callback Callback for receive data */ get_package(options) { - this.localStorage.getPackageMetadata(options.name, {req: options.req}, (err, data) => { + this.localStorage.getPackageMetadata(options.name, (err, data) => { if (err && (!err.status || err.status >= 500)) { // report internal errors right away return options.callback(err);