Skip to content

Commit b6ca63a

Browse files
committed
chore: lint
1 parent d8689c4 commit b6ca63a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

openapi_python_client/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,8 @@ def _run_command(self, cmd: str) -> None:
155155
)
156156
return
157157
try:
158-
dir = self.package_dir if self.meta == MetaType.NONE else self.project_dir
159-
subprocess.run(
160-
cmd, cwd=dir, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True
161-
)
158+
cwd = self.package_dir if self.meta == MetaType.NONE else self.project_dir
159+
subprocess.run(cmd, cwd=cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
162160
except CalledProcessError as err:
163161
self.errors.append(
164162
GeneratorError(

0 commit comments

Comments
 (0)