Skip to content

Commit c0b5f60

Browse files
authored
fix: attempt to fix linting issues
1 parent 3a9e42e commit c0b5f60

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

background/app/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def translate():
6464
to_language = request.form.get("lang", "")
6565

6666
if source_string == "":
67-
return f"Invalid request, you must provide a value.", 400
67+
return "Invalid request, you must provide a value.", 400
6868

6969
if to_language not in ACCEPTABLE_LANGUAGES:
7070
return f"Unsupported language: {to_language}", 400
@@ -76,7 +76,9 @@ def translate():
7676
"OriginalLanguage": "",
7777
}
7878

79-
topic_name = f"projects/{os.getenv('GOOGLE_CLOUD_PROJECT')}/topics/translate"
79+
topic_name = (
80+
f"projects/{os.getenv('GOOGLE_CLOUD_PROJECT')}/topics/translate"
81+
)
8082
publisher.publish(
8183
topic=topic_name, data=json.dumps(message).encode("utf-8")
8284
)

0 commit comments

Comments
 (0)