Skip to content

Commit

Permalink
Return nothing from main methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Jan 21, 2021
1 parent ea3c228 commit 48a0f34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dsdk/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,22 +237,22 @@ def context(cls):
logger.info(cls.END)

@classmethod
def main(cls) -> Batch:
def main(cls):
"""Main."""
with cls.context() as service:
return service()
service()

@classmethod
def create_gold(cls) -> Batch:
def create_gold(cls):
"""Create gold."""
with cls.context() as service:
return service.on_create_gold()
service.on_create_gold()

@classmethod
def validate_gold(cls) -> Batch:
def validate_gold(cls):
"""Validate gold."""
with cls.context() as service:
return service.on_validate_gold()
service.on_validate_gold()

def __init__( # pylint: disable=too-many-arguments
self,
Expand Down

0 comments on commit 48a0f34

Please sign in to comment.