Skip to content

Commit

Permalink
chore(difference): split params to avoid 120 chars maximum line length
Browse files Browse the repository at this point in the history
Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>
  • Loading branch information
josx committed Aug 1, 2016
1 parent cfe529c commit ab00167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DifferencePipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const momentConstructor: (value?: any) => moment.Moment = (<any>moment).default

@Pipe({ name: 'amDifference', pure: false })
export class DifferencePipe implements PipeTransform {
transform(value: Date | moment.Moment, otherValue: Date | moment.Moment, unit?: string, precision?: boolean): number {
transform(value: Date | moment.Moment,
otherValue: Date | moment.Moment,
unit?: string,
precision?: boolean): number {

let date = momentConstructor(value);
let date2 = (otherValue !== null) ? momentConstructor(otherValue) : momentConstructor();
Expand Down

0 comments on commit ab00167

Please sign in to comment.