Skip to content

Commit

Permalink
fix: normalize storage api
Browse files Browse the repository at this point in the history
  • Loading branch information
阿进 committed Feb 26, 2021
1 parent 6f37b96 commit becfeee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/storage/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function formatGetStorageRes(params: GetOrRemoveOptionStruct) {
return params;
}

export const normalize = {
export const normalize = {
getStorage: (api) => {
return (args: GetOrRemoveOptionStruct) => {
return promisify(api)(formatGetStorageRes(args)).catch((e) => {
Expand All @@ -38,5 +38,5 @@ export const normalize = {
return (args: GetOrRemoveOptionStruct) => {
return promisify(api)(args);
};
}
}
},
};

0 comments on commit becfeee

Please sign in to comment.