Skip to content

Commit ddba12a

Browse files
committed
removing unused variables
1 parent 7ca4eba commit ddba12a

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

libs/manage/file.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,9 @@ import request from "../../utils/request";
1717
import { IKCallback } from "../interfaces/IKCallback";
1818
import {
1919
ImageKitOptions,
20-
Transformation, TransformationPosition,
21-
UploadOptions,
22-
UploadResponse,
23-
FileType,
24-
UrlOptions,
25-
FinalUrlOptions,
2620
ListFileOptions, ListFileResponse,
2721
FileDetailsOptions, FileDetailsResponse,
2822
FileMetadataResponse,
29-
PurgeCacheResponse, PurgeCacheStatusResponse,
3023
BulkDeleteFilesResponse, BulkDeleteFilesError,
3124
} from "../interfaces/";
3225

sample/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const sampleApp = async () => {
8787
// Bulk add tags
8888
let fileIds = filesList.map(file => file.fileId);
8989
fileIds.shift();
90-
tags = ['red', 'blue'];
90+
var tags = ['red', 'blue'];
9191
const bulkAddTagsResponse = await bulkAddTags(imagekit, fileIds, tags);
9292
console.log("Bulk add tags response: ", bulkAddTagsResponse, "\n");
9393

utils/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function(
2929
}
3030

3131
if(response && response.statusCode >= 400) {
32-
respond(true, err || body, callback);
32+
respond(true, body, callback);
3333
return;
3434
}
3535

utils/transformation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { UrlOptions, TransformationPosition } from "../libs/interfaces";
66

77
const DEFAULT_TRANSFORMATION_POSITION : TransformationPosition = "path";
88
const QUERY_TRANSFORMATION_POSITION : TransformationPosition = "query";
9-
const VALID_TRANSFORMATION_POSITIONS : Array<string> = [DEFAULT_TRANSFORMATION_POSITION, QUERY_TRANSFORMATION_POSITION];
109

1110
const CHAIN_TRANSFORM_DELIMITER : string = ":";
1211
const TRANSFORM_DELIMITER : string = ",";

0 commit comments

Comments
 (0)