Remove the redundant `else` condition.

PiperOrigin-RevId: 302901741
Change-Id: I65281a07fc2789fbc13775c1365fd01789a1bb7e
This commit is contained in:
Yash Katariya 2020-03-25 09:07:01 -07:00 committed by TensorFlower Gardener
parent a8aa33c45e
commit aab9efbcec
1 changed files with 2 additions and 3 deletions

View File

@ -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