lib/wcc/contentful/sync_engine.rb in wcc-contentful-1.0.8 vs lib/wcc/contentful/sync_engine.rb in wcc-contentful-1.1.0
- old
+ new
@@ -47,10 +47,9 @@
unless %i[index index? find].all? { |m| store.respond_to?(m) }
raise ArgumentError, ':store param must implement the Store interface'
end
@store = store
- @state = read_state if should_sync?
end
if state
@state = token_wrapper_factory(state)
raise ArgumentError, ':state param must be a String or Hash' unless @state.is_a? Hash
unless @state.dig('sys', 'type') == 'token'