Skip to content

Commit 133657f

Browse files
refactor: removed unused variable for code cleanup
Co-authored-by: Vinícios Batista da Silva <[email protected]>
1 parent 2bf87e4 commit 133657f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/base/langflow/components/data/google_oauth_token.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def build_output(self) -> Data:
6767
token_path = Path("token.json")
6868

6969
if token_path.exists():
70-
with token_path.open(mode="r", encoding="utf-8") as token_file:
71-
creds = Credentials.from_authorized_user_file(str(token_path), scopes)
70+
creds = Credentials.from_authorized_user_file(str(token_path), scopes)
7271

7372
if not creds or not creds.valid:
7473
if creds and creds.expired and creds.refresh_token:

0 commit comments

Comments
 (0)