diff --git a/scripts/run-clang-tidy-on-compile-commands.py b/scripts/run-clang-tidy-on-compile-commands.py index f27a242cb20693..b04f7535dbd5bd 100755 --- a/scripts/run-clang-tidy-on-compile-commands.py +++ b/scripts/run-clang-tidy-on-compile-commands.py @@ -213,7 +213,7 @@ def find_darwin_gcc_sysroot(): ): if not line.startswith("Path: "): continue - path = line[line.find(": ") + 2 :] + path = line[line.find(": ") + 2:] if "/MacOSX.platform/" not in path: continue logging.info("Found %s" % path)