소스 검색

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();
             }