Skip to content

Commit

Permalink
Merge pull request #475 from datphan/hotfix
Browse files Browse the repository at this point in the history
hotfix: fix Util.exist always return true if it is String
  • Loading branch information
hoatle authored Sep 15, 2018
2 parents f6ebd6f + 1b38b00 commit 1e8a5df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/teracy-dev/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ def self.exist?(value)
if !value.nil?
if value.instance_of? String
exist = !value.empty?
else
exist = true
end
exist = true
end
exist
end
Expand Down

0 comments on commit 1e8a5df

Please sign in to comment.