Add check to skip setting up lint commands if none are provided.

This commit is contained in:
Paul Gauthier 2024-05-19 07:42:39 -07:00
parent afd827b9d9
commit 0b18f3b4ef

View file

@ -330,6 +330,8 @@ class Coder:
self.io.tool_output(json.dumps(self.functions, indent=4))
def setup_lint_cmds(self, lint_cmds):
if not lint_cmds:
return
for lang, cmd in lint_cmds.items():
self.linter.set_linter(lang, cmd)