Skip to content

Commit b803c8a

Browse files
author
Mark Robinson
committed
Remove erroneous negation
1 parent a701f5a commit b803c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/commonwl/viewer/services/WorkflowService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public boolean cacheExpired(Workflow workflow) {
119119
// Calculate expiration
120120
Calendar expireCal = Calendar.getInstance();
121121
expireCal.setTime(workflow.getRetrievedOn());
122-
expireCal.add(Calendar.DATE, -cacheDays);
122+
expireCal.add(Calendar.DATE, cacheDays);
123123
Date expirationDate = expireCal.getTime();
124124

125125
// Check cached retrievedOn date

0 commit comments

Comments
 (0)