Skip to content

Commit

Permalink
Update TimelineManager.java
Browse files Browse the repository at this point in the history
add and to if statement
  • Loading branch information
markmckinnon committed Jan 29, 2020
1 parent 26df7d9 commit e8840bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ Collection<TimelineEvent> addEventsForNewFile(AbstractFile file, CaseDbConnectio

for (Map.Entry<TimelineEventType, Long> timeEntry : timeMap.entrySet()) {
Long time = timeEntry.getValue();
if (time > 0 || time <= MAX_TIMESTAMP_TO_ADD) {// if the time is legitimate ( greater than zero or less then 12 years from current date) insert it
if (time > 0 && time < MAX_TIMESTAMP_TO_ADD) {// if the time is legitimate ( greater than zero or less then 12 years from current date) insert it
TimelineEventType type = timeEntry.getKey();
long eventID = addEventWithExistingDescription(time, type, descriptionID, connection);

Expand Down

0 comments on commit e8840bc

Please sign in to comment.