Navigation Menu

Skip to content

Commit

Permalink
Accept non-string input as a role
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 29, 2015
1 parent bd27178 commit a5072dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/node_role.rb
Expand Up @@ -64,7 +64,7 @@ def valid?(role)
end

def normalize(role)
role = role.downcase
role = role.to_s.downcase
role = SERVICE_PROVIDER unless valid?(role)
role
end
Expand Down

0 comments on commit a5072dd

Please sign in to comment.