Skip to content

Commit

Permalink
remove abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
hossam-nasr committed Apr 11, 2022
1 parent 0d8004e commit 25e0a27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ export class LongTimerTask extends WhenAllTask implements TimerTask {
) {
const currentTime = moment(orchestrationContext.currentUtcDateTime);
const finalFireTime = moment(action.fireAt);
const durationTillFire = moment.duration(finalFireTime.diff(currentTime));
const durationUntilFire = moment.duration(finalFireTime.diff(currentTime));

let nextFireTime: Date;
if (durationTillFire > maximumTimerLength) {
if (durationUntilFire > maximumTimerLength) {
nextFireTime = currentTime.add(longRunningTimerIntervalDuration).toDate();
} else {
nextFireTime = finalFireTime.toDate();
Expand Down Expand Up @@ -463,9 +463,9 @@ export class LongTimerTask extends WhenAllTask implements TimerTask {
}

private getNextTimerTask(finalFireTime: Date, currentTime: Date): DFTimerTask {
const durationTillFire = moment.duration(moment(finalFireTime).diff(currentTime));
const durationUntilFire = moment.duration(moment(finalFireTime).diff(currentTime));
let nextFireTime: Date;
if (durationTillFire > this.maximumTimerLength) {
if (durationUntilFire > this.maximumTimerLength) {
nextFireTime = moment(currentTime).add(this.longRunningTimerIntervalDuration).toDate();
} else {
nextFireTime = finalFireTime;
Expand Down

0 comments on commit 25e0a27

Please sign in to comment.