Skip to content

Commit

Permalink
feat: fix some typos in linting
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 9, 2024
1 parent ecfb39f commit 6837e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ commands =
# Syntax Checks
[testenv:lint]
commands =
python -m mypy src/backend.py
python -m mypy src/forensicsim/backend.py
python -m ruff --output-format=github src
python -m ruff format src --check
Expand Down
8 changes: 2 additions & 6 deletions src/forensicsim/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,12 @@ def fetch_data(self) -> None:
def get_database_metadata(
self, db_id: int, meta_type: DatabaseMetadataType
) -> Optional[Union[str, int]]:
if self.database_metadata:
return self.database_metadata.get_meta(db_id, meta_type)
return None
return self.database_metadata.get_meta(db_id, meta_type)

def get_object_store_metadata(
self, db_id: int, obj_store_id: int, meta_type: ObjectStoreMetadataType
) -> Optional[Any]:
if self.object_store_meta:
return self.object_store_meta.get_meta(db_id, obj_store_id, meta_type)
return None
return self.object_store_meta.get_meta(db_id, obj_store_id, meta_type)

def __iter__(self) -> Iterator[dict[str, Any]]:
blink_deserializer = ccl_blink_value_deserializer.BlinkV8Deserializer()
Expand Down

0 comments on commit 6837e06

Please sign in to comment.