Skip to content

Commit

Permalink
do not check empty hash
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jun 19, 2012
1 parent 3f6530e commit 336e26c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rails_best_practices/reviews/hash_syntax_review.rb
Expand Up @@ -21,6 +21,7 @@ def initialize(options = {})

# check hash node to see if it is ruby 1.8 style.
def start_hash(node)
return if s(:hash, nil) == node
pair_nodes = node[1][1]

if hash_is_18?(pair_nodes)
Expand Down

0 comments on commit 336e26c

Please sign in to comment.