summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-05-17 15:05:19 +0100
committerEric Wieser <wieser.eric@gmail.com>2020-05-17 15:05:19 +0100
commitc2cbf13ac4df693cec70f6949efdc386c791d1f9 (patch)
treee2ce73b1532d14201e0d76eed24c90075e99e39d /numpy/lib/function_base.py
parentbd8be5417632c019dbc1d36400052805f95a372c (diff)
downloadnumpy-c2cbf13ac4df693cec70f6949efdc386c791d1f9.tar.gz
MAINT: Remove a pointless if
The `add` ufunc is happy to handle `out=None` by itself
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index dea01d12d..12ba3b1c6 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -3975,10 +3975,7 @@ def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False,
x1 = x1.squeeze(0)
x2 = x2.squeeze(0)
- if out is not None:
- r = add(x1, x2, out=out)
- else:
- r = add(x1, x2)
+ r = add(x1, x2, out=out)
if np.any(n):
if zerod: