Skip to content

Commit 5d75886

Browse files
style: apply formatting fixes to hybrid RefResolver implementation
Co-Authored-By: AJ Steers <[email protected]>
1 parent edc20d6 commit 5d75886

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airbyte_cdk/sources/utils/transform.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def resolve(subschema: dict[str, Any]) -> dict[str, Any]:
209209
try:
210210
if (
211211
hasattr(validator_instance, "resolver")
212-
and validator_instance.resolver
212+
and validator_instance.resolver is not None
213213
):
214214
_, resolved = cast(
215215
RefResolver, validator_instance.resolver
@@ -218,7 +218,6 @@ def resolve(subschema: dict[str, Any]) -> dict[str, Any]:
218218
except Exception:
219219
pass
220220

221-
# If both approaches fail, return the original subschema
222221
return subschema
223222
return subschema
224223

0 commit comments

Comments
 (0)