Skip to content

Commit 1167b8a

Browse files
committed
remove duplicate code
1 parent 56facc2 commit 1167b8a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ingestion/data_transfer_models/headline.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,6 @@ def validate_period_dates(
109109
return validation.validate_period_end(
110110
period_start=input_period_start, period_end=period_end
111111
)
112-
113-
@model_validator(mode="after")
114-
def error_if_no_is_public_field(self) -> Self:
115-
"""Checks that the `is_public` field is set."""
116-
if not AUTH_ENABLED and not self.is_public:
117-
raise NonPublicDataSentToPublicIngestionError
118-
119-
return self
120112

121113
@model_validator(mode="after")
122114
def invalidate_non_public_data_for_public_ingestion(self) -> Self:

0 commit comments

Comments
 (0)