refactored to PR

This commit is contained in:
Zanz2 2018-03-13 17:42:26 +01:00
parent 97c01c386b
commit bf34d82791

View file

@ -165,13 +165,11 @@ module ProtocolsIoHelper
end
def step_hash_null?(step_json)
return false unless step_json.dig(
step_json.dig(
0, 'components', 0, 'component_type_id'
).nil?
return false unless step_json.dig(
).nil? && step_json.dig(
0, 'components', '0', 'component_type_id'
).nil?
true
end
# Images are allowed in: