Commit 7db5d16e authored by Denny Mattern's avatar Denny Mattern
Browse files

remove duplicated if clause

parent 6fb9f07c
...@@ -10,8 +10,6 @@ from cffi import FFI ...@@ -10,8 +10,6 @@ from cffi import FFI
def toLongTensor(dimension, x): def toLongTensor(dimension, x):
if type(x).__name__ == 'LongTensor':
return x
if type(x).__name__ == 'LongTensor': if type(x).__name__ == 'LongTensor':
return x return x
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment