lib/percy/stats.rb in percy-common-1.1.0 vs lib/percy/stats.rb in percy-common-1.2.0

- old
+ new

@@ -18,10 +18,10 @@ @_timing_start = Time.now true end def stop_timing(stat, options = {}) - raise 'no timing started' if !@_timing_start # Programmer mistake, so raise an error. + raise 'no timing started' unless @_timing_start # Programmer mistake, so raise an error. time_since(stat, @_timing_start, options) @_timing_start = nil true end end