Remove the redundant `else` condition.
PiperOrigin-RevId: 302901741 Change-Id: I65281a07fc2789fbc13775c1365fd01789a1bb7e
This commit is contained in:
parent
a8aa33c45e
commit
aab9efbcec
|
@ -24,7 +24,6 @@ from __future__ import print_function
|
|||
|
||||
import os
|
||||
|
||||
|
||||
_force_enable = None
|
||||
|
||||
|
||||
|
@ -44,5 +43,5 @@ def enabled():
|
|||
"""Returns True iff TensorFlow 2.0 behavior should be enabled."""
|
||||
if _force_enable is None:
|
||||
return os.getenv("TF2_BEHAVIOR", "0") != "0"
|
||||
else:
|
||||
return _force_enable
|
||||
|
||||
return _force_enable
|
||||
|
|
Loading…
Reference in New Issue