Skip to content

Commit

Permalink
Move nosec comment to appropriate line
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Feb 21, 2024
1 parent 8ea4785 commit 996b7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/v201/init_device_model_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def _read_component_default_values(self, schemas_path: Path) -> dict[
database_initializer = DeviceModelDatabaseInitializer(database_file)

if "init" in commands:
tmp_path = Path("/tmp/ocpp201")
if tmp_path == database_file or tmp_path in database_file.parents: # nosec
tmp_path = Path("/tmp/ocpp201") # nosec
if tmp_path == database_file or tmp_path in database_file.parents:
tmp_path.mkdir(parents=True, exist_ok=True)
database_initializer.initialize_database(schemas_path)

Expand Down

0 comments on commit 996b7b0

Please sign in to comment.