Do not print needless newlines in check.
This commit is contained in:
parent
93a3919db5
commit
7d9ffa07ac
@ -18,7 +18,7 @@ class CheckCommand(object):
|
|||||||
|
|
||||||
# If the project is empty just skip it
|
# If the project is empty just skip it
|
||||||
if not state:
|
if not state:
|
||||||
return
|
return None
|
||||||
|
|
||||||
print('Checking staging project: {}'.format(project))
|
print('Checking staging project: {}'.format(project))
|
||||||
if type(state) is list:
|
if type(state) is list:
|
||||||
@ -28,6 +28,8 @@ class CheckCommand(object):
|
|||||||
else:
|
else:
|
||||||
print(' ++ Acceptable staging project')
|
print(' ++ Acceptable staging project')
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
def perform(self, project):
|
def perform(self, project):
|
||||||
"""
|
"""
|
||||||
Check one staging project verbosibly or all of them at once
|
Check one staging project verbosibly or all of them at once
|
||||||
@ -37,7 +39,7 @@ class CheckCommand(object):
|
|||||||
self._check_one_project(project, True)
|
self._check_one_project(project, True)
|
||||||
else:
|
else:
|
||||||
for project in self.api.get_staging_projects():
|
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
|
# newline to split multiple prjs at once
|
||||||
print('')
|
print('')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user