Skip to content

Commit ce299b4

Browse files
author
Matias Melograno
committed
removed unnecesary check
1 parent 0a0b6d0 commit ce299b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

splitio/input_validator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ def _check_can_convert(value, name, operation, message):
111111
if isinstance(value, bool) or isinstance(value, Number) is False:
112112
_LOGGER.error('{}: {} {} {}'.format(operation, name, value, message))
113113
return False
114-
if isinstance(value, Number):
115-
_LOGGER.warning('{}: {} {} is not of type string, converting.'
116-
.format(operation, name, value))
114+
_LOGGER.warning('{}: {} {} is not of type string, converting.'
115+
.format(operation, name, value))
117116
return True
118117

119118

0 commit comments

Comments
 (0)