Skip to content

Commit

Permalink
Fix tslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik Kumar A authored and jkuri committed Nov 2, 2017
1 parent b036c02 commit fe09a54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ngx-uploader/classes/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export interface UploadFile {
}

export interface UploadOutput {
type: 'addedToQueue' | 'allAddedToQueue' | 'uploading' | 'done' | 'start' | 'cancelled' | 'dragOver' | 'dragOut' | 'drop' | 'removed' | 'removedAll';
type: 'addedToQueue' | 'allAddedToQueue' | 'uploading' | 'done' | 'start' | 'cancelled' | 'dragOver'
| 'dragOut' | 'drop' | 'removed' | 'removedAll';
file?: UploadFile;
nativeFile?: File;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ngx-uploader/classes/ngx-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class NgUploaderService {
const headers = event.headers || {};

const xhr = new XMLHttpRequest();
let time: number = new Date().getTime();
const time: number = new Date().getTime();
let progressStartTime: number = (file.progress.data && file.progress.data.startTime) || time;
let speed = 0;
let eta: number | null = null;
Expand Down Expand Up @@ -226,7 +226,7 @@ export class NgUploaderService {

try {
const uploadFile = <BlobFile>file.nativeFile;
const uploadIndex = this.queue.findIndex(file => file.nativeFile === uploadFile);
const uploadIndex = this.queue.findIndex(outFile => outFile.nativeFile === uploadFile);

if (this.queue[uploadIndex].progress.status === UploadStatus.Cancelled) {
observer.complete();
Expand Down

0 comments on commit fe09a54

Please sign in to comment.