0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

fix: 🐛 extra argument after rebase

This commit is contained in:
Meeeeow 2017-12-02 23:56:22 +08:00 committed by juanpicado
parent 8fe0f13b49
commit 2cef0a4c41
2 changed files with 1 additions and 2 deletions

View file

@ -588,7 +588,6 @@ class Storage implements IStorage {
/**
* Retrieve a package by name.
* @param {*} name
* @param {*} options
* @param {*} callback
* @return {Function}
*/

View file

@ -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);