Skip to content

Commit

Permalink
rename fs to snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Sep 19, 2023
1 parent 3a53f30 commit 8f754b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/usecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def handle_dto_error(self, dto: TBaseDTO) -> TBaseErrorResponseModel:
raise NotImplementedError

@abstractmethod
def processDTO(self, dto: TBaseDTO) -> TBaseResponseModel | TBaseErrorResponseModel:
def process_dto(self, dto: TBaseDTO) -> TBaseResponseModel | TBaseErrorResponseModel:
raise NotImplementedError

def execute(self, requestModel: TBaseRequestModel | TBaseAuthenticatedRequestModel) -> None:
Expand All @@ -54,7 +54,7 @@ def execute(self, requestModel: TBaseRequestModel | TBaseAuthenticatedRequestMod
errorModel: TBaseErrorResponseModel = self.handle_dto_error(dto)
self.presenter.presentError(errorModel)
else:
responseModel: TBaseResponseModel | TBaseErrorResponseModel = self.processDTO(dto)
responseModel: TBaseResponseModel | TBaseErrorResponseModel = self.process_dto(dto)
if responseModel.status == False:
self.presenter.presentError(responseModel) # type: ignore # TODO: try to fix this, line 46 cannot change
else:
Expand Down

0 comments on commit 8f754b7

Please sign in to comment.