Remove len() in favor of boolean test

This commit is contained in:
twangboy 2016-07-05 13:52:07 -07:00
parent 4373408163
commit b83392edea

View File

@ -3560,7 +3560,7 @@ def append(name,
ret['result'] = True
return ret
if len(append_lines):
if append_lines:
__salt__['file.append'](name, args=append_lines)
ret['comment'] = 'Appended {0} lines'.format(len(append_lines))
else: