Skip to content

Commit fda4822

Browse files
don't repeat os.path.dirname
Co-authored-by: Copilot <[email protected]>
1 parent d1b03cd commit fda4822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytype_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def setup_and_run_pytype_action(scriptname: str):
178178
if summary_file:
179179
dirname = os.path.dirname(summary_file)
180180
if dirname:
181-
os.makedirs(os.path.dirname(summary_file), exist_ok=True)
181+
os.makedirs(dirname, exist_ok=True)
182182
with open(summary_file, "w", encoding="utf-8") as fp:
183183
to_markdown(scriptname, fp, retcode, results, filelink_baseurl)
184184
else:

0 commit comments

Comments
 (0)