Do not print needless newlines in check.

This commit is contained in:
Tomáš Chvátal 2014-03-24 13:46:51 +01:00
parent 93a3919db5
commit 7d9ffa07ac

View File

@ -18,7 +18,7 @@ class CheckCommand(object):
# If the project is empty just skip it
if not state:
return
return None
print('Checking staging project: {}'.format(project))
if type(state) is list:
@ -28,6 +28,8 @@ class CheckCommand(object):
else:
print(' ++ Acceptable staging project')
return True
def perform(self, project):
"""
Check one staging project verbosibly or all of them at once
@ -37,7 +39,7 @@ class CheckCommand(object):
self._check_one_project(project, True)
else:
for project in self.api.get_staging_projects():
self._check_one_project(project, False)
if self._check_one_project(project, False):
# newline to split multiple prjs at once
print('')