lib/gooddata/mixins/md_object_indexer.rb in gooddata-0.6.10 vs lib/gooddata/mixins/md_object_indexer.rb in gooddata-0.6.11
- old
+ new
@@ -33,10 +33,10 @@
id
else
fail 'Unexpected object id format: expected numeric ID, identifier with no slashes or an URI starting with a slash'
end
# new(GoodData.get uri) unless uri.nil?
- if uri
+ if uri # rubocop:disable Style/GuardClause
raw = client.get(uri)
client.create(self, raw, client: client, project: project)
end
end