Get rid of unnecessary check
authorLisa Velden <velden@google.com>
Fri, 26 Jun 2015 07:49:34 +0000 (09:49 +0200)
committerLisa Velden <velden@google.com>
Mon, 29 Jun 2015 14:50:13 +0000 (16:50 +0200)
As RestorePrivateValueWrapping() can also handle None, we do not have
to check here.

Signed-off-by: Lisa Velden <velden@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>

lib/jqueue/exec.py

index 8da1d12..8e61805 100644 (file)
@@ -138,7 +138,7 @@ def main():
 
     if secret_params:
       for i in range(0, len(secret_params)):
-        if hasattr(job.ops[i].input, "osparams_secret") and secret_params[i]:
+        if hasattr(job.ops[i].input, "osparams_secret"):
           job.ops[i].input.osparams_secret = secret_params[i]
 
     execfun = mcpu.Processor(context, job_id, job_id).ExecOpCode