Skip to content

Commit c9b2892

Browse files
committed
fix: Format
1 parent 9b78232 commit c9b2892

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/c2pa/c2pa.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def load_settings(settings: Union[str, dict], format: str = "json") -> None:
692692
Raises:
693693
C2paError: If there was an error loading the settings
694694
"""
695-
# If settings is a dict, convert it to JSON string and set format
695+
# Convert to JSON string as necessary
696696
try:
697697
if isinstance(settings, dict):
698698
settings_str = json.dumps(settings)
@@ -2573,7 +2573,6 @@ def add_ingredient_from_stream(
25732573
"""
25742574
self._ensure_valid_state()
25752575

2576-
# Convert dict to JSON string as necessary
25772576
if isinstance(ingredient_json, dict):
25782577
ingredient_json = json.dumps(ingredient_json)
25792578

@@ -2665,7 +2664,6 @@ def add_action(self, action_json: Union[str, dict]) -> None:
26652664
"""
26662665
self._ensure_valid_state()
26672666

2668-
# Convert dict to JSON string as necessary
26692667
if isinstance(action_json, dict):
26702668
action_json = json.dumps(action_json)
26712669

0 commit comments

Comments
 (0)