chore(): tslint (#466)

* fix src tslint gulp ionic

* - fix errors tslint
This commit is contained in:
Ramon Henrique Ornelas
2016-08-22 19:19:43 -03:00
committed by Ibrahim Hadeed
parent 16628a49f7
commit ed8c67ce7e
16 changed files with 76 additions and 43 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func
// We don't want that the reject cb gets spliced into the position of an optional argument that has not been defined and thus causing non expected behaviour.
if (opts.errorIndex > args.length) {
args[opts.errorIndex] = reject; //insert the reject fn at the correct specific index
args[opts.errorIndex] = reject; // insert the reject fn at the correct specific index
} else {
args.splice(opts.errorIndex, 0, reject); //otherwise just splice it into the array
args.splice(opts.errorIndex, 0, reject); // otherwise just splice it into the array
}
} else {
// Otherwise, let's tack them on to the end of the argument list