Skip to content

Commit c23ad70

Browse files
committed
minor lint polishing
[ghstack-poisoned]
1 parent e2d07f6 commit c23ad70

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tools/linter/adapters/cmake_format_linter.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import sys
1111

1212
from lintrunner_adapters import (
13-
LintMessage,
14-
LintSeverity,
1513
add_default_options,
1614
as_posix,
15+
LintMessage,
16+
LintSeverity,
1717
run_command,
1818
)
1919

@@ -121,9 +121,7 @@ def main() -> None:
121121
level=(
122122
logging.NOTSET
123123
if args.verbose
124-
else logging.DEBUG
125-
if len(args.filenames) < 1000
126-
else logging.INFO
124+
else logging.DEBUG if len(args.filenames) < 1000 else logging.INFO
127125
),
128126
stream=sys.stderr,
129127
)

0 commit comments

Comments
 (0)