Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisherAmonulloev committed May 16, 2024
1 parent bdad111 commit 9f801cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Vue/src/services/amazon.filesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class AmazonFileSystem {
}
return key.substring(index + 1);
}

/* eslint-disable-next-line vue/max-len */
async uploadFileChunk(fileData: File, uploadInfo: UploadInfo, destinationDirectory: FileSystemItem | undefined): Promise<any> {
try {
if (uploadInfo.chunkIndex === 0) {
Expand Down
6 changes: 3 additions & 3 deletions Vue/src/services/amazon.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class AmazonGateway {
const requestParams = { method: 'POST', body: JSON.stringify(keys), headers: this.defaultHeaders };
return this.makeRequestAsync('downloadItems', params, requestParams);
}

/* eslint-disable-next-line vue/max-len */
async uploadPart(fileData: File, uploadInfo: UploadInfo, destinationDirectory: FileSystemItem | undefined): Promise<any> {
const params = {};
const key = `${destinationDirectory?.key ?? ''}${fileData.name}`;
Expand All @@ -106,7 +106,7 @@ export class AmazonGateway {
// partNumber must be > 0
this.addPartToUploadData(key, { PartNumber: uploadInfo.chunkIndex + 1, ETag: etag });
}

/* eslint-disable-next-line vue/max-len */
async completeUpload(fileData: File, uploadInfo: UploadInfo, destinationDirectory: FileSystemItem | undefined): Promise<any> {
const key = `${destinationDirectory?.key ?? ''}${fileData.name}`;
const params = {
Expand Down Expand Up @@ -142,7 +142,7 @@ export class AmazonGateway {
};
return this.makeRequestAsync('getPresignedDownloadUrl', params, requestOptions);
}

/* eslint-disable-next-line vue/max-len */
async makeRequestAsync(method: string, queryParams: any, requestParams: RequestInit): Promise<any> {
const requestUrl = this.getRequestUrl(method);
const url = new URL(requestUrl);
Expand Down

0 comments on commit 9f801cb

Please sign in to comment.