浏览代码

fix checkstyle error blocking build

Jason Rivard 6 年之前
父节点
当前提交
8c5ec59e65
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      server/src/main/java/password/pwm/svc/pwnotify/PwNotifyService.java

+ 2 - 1
server/src/main/java/password/pwm/svc/pwnotify/PwNotifyService.java

@@ -186,7 +186,8 @@ public class PwNotifyService extends AbstractPwmService implements PwmService
             }
 
             // more than 24hr ago.
-            if ( Duration.between( Instant.now(), pwNotifyStoredJobState.getLastCompletion() ).abs().getSeconds() > settings.getMaximumSkipWindow().as( TimeDuration.Unit.SECONDS ) )
+            final long maxSeconds = settings.getMaximumSkipWindow().as( TimeDuration.Unit.SECONDS );
+            if ( Duration.between( Instant.now(), pwNotifyStoredJobState.getLastCompletion() ).abs().getSeconds() > maxSeconds )
             {
                 return Instant.now();
             }