Skip to content

Commit

Permalink
Merge pull request #3773 from rahul100885/rahul100885_work
Browse files Browse the repository at this point in the history
Use any instead of length
  • Loading branch information
spastorino committed Nov 27, 2011
2 parents 0b7cd7b + 1756629 commit af3aaca
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1239,7 +1239,7 @@ def extract_pg_identifier_from_name(name)
if match_data if match_data
rest = name[match_data[0].length, name.length] rest = name[match_data[0].length, name.length]
rest = rest[1, rest.length] if rest.start_with? "." rest = rest[1, rest.length] if rest.start_with? "."
[match_data[1], (rest.length > 0 ? rest : nil)] [match_data[1], (rest.any? ? rest : nil)]
end end
end end


Expand Down

0 comments on commit af3aaca

Please sign in to comment.