Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
The condition is checked in `newCacheBuilder`, no need to check it in
constructor.
  • Loading branch information
findepi committed Oct 11, 2019
1 parent 2f4fbde commit e0c3e2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public CachingHiveMetastore(HiveMetastore delegate, Executor executor, Duration
delegate,
executor,
OptionalLong.of(cacheTtl.toMillis()),
refreshInterval.toMillis() >= cacheTtl.toMillis() ? OptionalLong.empty() : OptionalLong.of(refreshInterval.toMillis()),
OptionalLong.of(refreshInterval.toMillis()),
maximumSize);
}

Expand Down

0 comments on commit e0c3e2b

Please sign in to comment.