Remove unnecessary clause

This commit is contained in:
martinsumner 2016-11-03 19:39:23 +00:00
parent 341e245c09
commit 49eed55735

View file

@ -761,11 +761,8 @@ maybepush_ledgercache(MaxCacheSize, Cache, Penciller) ->
end. end.
maybe_withjitter(CacheSize, MaxCacheSize) -> maybe_withjitter(CacheSize, MaxCacheSize) ->
if if
CacheSize > 2 * MaxCacheSize ->
true;
CacheSize > MaxCacheSize -> CacheSize > MaxCacheSize ->
T = 2 * MaxCacheSize - CacheSize, T = 2 * MaxCacheSize - CacheSize,
R = random:uniform(CacheSize), R = random:uniform(CacheSize),