mirror of
https://github.com/inspec/inspec
synced 2024-09-22 07:21:56 +00:00
lint: remove whitespace
This commit is contained in:
parent
bb0734f8f3
commit
14c5c3f393
1 changed files with 0 additions and 2 deletions
|
@ -1,12 +1,10 @@
|
|||
# encoding: utf-8
|
||||
|
||||
module Converter
|
||||
|
||||
# convert the value to an integer if we have numbers only
|
||||
# otherwise we return the string
|
||||
def convert_to_i(val)
|
||||
val = val.to_i if val.match(/^\d+$/)
|
||||
val
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue