Browse code

2D: simplify inline if else statement

Bas Nijholt authored on 12/05/2018 19:04:20
Showing 1 changed files
... ...
@@ -259,7 +259,7 @@ class Learner2D(BaseLearner):
259 259
                 self._vdim = len(value)
260 260
             except TypeError:
261 261
                 self._vdim = 1
262
-        return self._vdim if self._vdim is not None else 1
262
+        return self._vdim or 1
263 263
 
264 264
     @property
265 265
     def bounds_are_done(self):