Skip to content

Commit 75eeeeb

Browse files
vtavanandgrigorian
andauthored
Update mkl_fft/interfaces/_scipy_fft.py
Co-authored-by: ndgrigorian <[email protected]>
1 parent 12677c0 commit 75eeeeb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mkl_fft/interfaces/_scipy_fft.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,9 @@ def _use_input_as_out(x, overwrite_x):
207207
"""Check if the input can be used as output."""
208208
if overwrite_x and np.issubdtype(x.dtype, np.complexfloating):
209209
# pass input as out to overwrite it
210-
out = x
210+
return x
211211
else:
212-
out = None
213-
214-
return out
212+
return None
215213

216214

217215
def _validate_input(x):

0 commit comments

Comments
 (0)