Skip to content

Commit

Permalink
fix: unused variables (closes bleenco#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Feb 8, 2017
1 parent bab50bd commit e1e1b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/ngx-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ export class NgUploaderService {
}
};

xhr.upload.onabort = (e: Event) => {
xhr.upload.onabort = () => {
uploadingFile.setAbort();
this._emitter.emit(uploadingFile);
};

xhr.upload.onerror = (e: Event) => {
xhr.upload.onerror = () => {
uploadingFile.setError();
this._emitter.emit(uploadingFile);
};
Expand Down Expand Up @@ -128,7 +128,7 @@ export class NgUploaderService {

addFilesToQueue(files: File[]): void {
this.clearQueue();
[].forEach.call(files, (file: File, i: number) => {
[].forEach.call(files, (file: File) => {
if (!this.inQueue(file)) {
this._queue.push(file);
}
Expand Down

0 comments on commit e1e1b16

Please sign in to comment.