Skip to content

Commit 833ffff

Browse files
author
Jagveer
committed
promified function calls
1 parent eba5fcf commit 833ffff

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var ImageKit = function(opts) {
3333
}
3434

3535
const promisify = function(f) {
36-
const self = this;
3736
return function(...args) {
37+
const self = this;
3838
if (args.length === f.length) {
3939
if (typeof args[args.length-1] !== 'function') {
4040
throw new Error('Callback must be a function.')

libs/manage/file.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ module.exports.getMetadata = function(fileId, defaultOptions, callback) {
4040
respond(true, errorMessages.FILE_ID_MISSING, callback);
4141
return;
4242
}
43-
4443
var requestOptions = {
4544
url : "https://api.imagekit.io/v1/files/" + fileId + "/metadata",
4645
method : "GET",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagekit",
3-
"version": "2.0.2",
3+
"version": "3.0.0",
44
"description": "Offical NodeJS SDK for ImageKit.io integration",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)