lib/sniffer/data.rb in sniffer-0.3.2 vs lib/sniffer/data.rb in sniffer-0.4.0

- old
+ new

@@ -2,11 +2,9 @@ module Sniffer # Data class stores the data and controls capacity class Data < Array def store(data_item) - return unless data_item.allowed_to_sniff? - if config.rotate? rotate(data_item) else push(data_item) unless overflow? end