From bedec8e16e987f7f4acb89ae7def5a702e1fcc9b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 30 Jul 2014 16:58:34 +0000 Subject: Simplify logic and condition Avoiding a condition that has a negation tends to be a bit simpler for humans to understand. --- scripts/release-build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/release-build b/scripts/release-build index 36ecb423..a3e25ebb 100755 --- a/scripts/release-build +++ b/scripts/release-build @@ -121,9 +121,8 @@ class ReleaseApp(cliapp.Application): builds = [] for system_name in systems: system, _ = self.load_morphology(system_name) - if system['arch'] not in self.controllers: - continue - builds.append(Build(system_name, system['arch'], self)) + if system['arch'] in self.controllers: + builds.append(Build(system_name, system['arch'], self)) return builds def deploy_images(self, cluster, cluster_path): -- cgit v1.2.1