Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Fixes for rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfpessoa committed Oct 28, 2018
1 parent 4c6acd3 commit 6d22ffc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dependency_spy/dtos/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def to_map
map = {}
members.each do |m|
if !self[m] ||
(self[m].is_a?(String) && self[m].empty?) ||
(self[m].is_a?(Array) && self[m].none?)
(self[m].is_a?(String) && self[m].empty?) ||
(self[m].is_a?(Array) && self[m].none?)
next
elsif self[m].is_a?(Struct)
map[m.to_s] = self[m].to_map
Expand Down Expand Up @@ -60,8 +60,8 @@ def to_map
map = {}
members.each do |m|
if !self[m] ||
(self[m].is_a?(String) && self[m].empty?) ||
(self[m].is_a?(Array) && self[m].none?)
(self[m].is_a?(String) && self[m].empty?) ||
(self[m].is_a?(Array) && self[m].none?)
next
elsif self[m].is_a?(Struct)
map[m.to_s] = self[m].to_map
Expand Down

0 comments on commit 6d22ffc

Please sign in to comment.