tiborpilz / commitomatic

Inconsistent return statements PYL-R1710
Style
Minor
a year agoa year old
Either all return statements in a function should return an expression, or none of them should.
12    with open(f"tests/fixtures/{filename}", "r") as f:
13        return f.read()
14
15def mock_execute(self, cmd, **kwargs):16    if cmd[1] == "diff":
17        if "--name-only" in cmd:
18            return "poetry.lock\npyproject.toml\ncommitomatic/git.py"