From 8c2c3252f0b39f0ec498ca3e2488f0cc22e1e3ee Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Thu, 23 Feb 2017 19:49:03 -0600 Subject: [PATCH] [ci skip] Code layout consistency. --- sumpy/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sumpy/tools.py b/sumpy/tools.py index af125566..f5014295 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -428,10 +428,11 @@ def my_syntactic_subs(expr, subst_dict): else: new_args = tuple(my_syntactic_subs(arg, subst_dict) for arg in expr.args) + if any(new_arg != arg for arg, new_arg in zip(expr.args, new_args)): return expr.func(*new_args) - else: - return expr + + return expr # vim: fdm=marker -- GitLab