Remove if stmt for integer input

This commit is contained in:
David Zhang 2016-07-14 13:38:14 +08:00
parent e503c17dfa
commit b44457a80b
1 changed files with 0 additions and 1 deletions

View File

@ -267,7 +267,6 @@ module Jekyll
# #
# Returns the integer value # Returns the integer value
def to_integer(input) def to_integer(input)
return input if input.is_a?(Integer)
return 1 if input == true return 1 if input == true
return 0 if input == false return 0 if input == false
begin begin