Skip to content

Commit 029599d

Browse files
committed
address codacy issues
1 parent 98ebe09 commit 029599d

File tree

1 file changed

+2
-3
lines changed
  • broker/cloud_run/lsst/ps_to_storage

1 file changed

+2
-3
lines changed

broker/cloud_run/lsst/ps_to_storage/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"""This module stores LSST alert data as an Avro file in Cloud Storage and publishes it to various Pub/Sub topics."""
55

66
import os
7+
from typing import Any
78
import flask
89
import pittgoogle
910
from google.cloud import logging, storage
1011
from google.cloud.exceptions import PreconditionFailed
11-
from typing import Any
1212

1313
# [FIXME] Make this helpful or else delete it.
1414
# Connect the python logger to the google cloud logger.
@@ -174,8 +174,7 @@ def _process_field(original_value: Any, config: dict) -> Any:
174174

175175
if config["is_list"]:
176176
return [_filter_dict(item, whitelisted_fields) for item in original_value or []]
177-
else:
178-
return _filter_dict(original_value, whitelisted_fields)
177+
return _filter_dict(original_value, whitelisted_fields)
179178

180179

181180
def _filter_dict(alert_dict: dict, whitelisted_fields: set) -> dict:

0 commit comments

Comments
 (0)