Slightly simplify `Linter.normalize_filename`
@@ -1351,8 +1351,8 @@ class Linter(metaclass=LinterMeta):
if not os.path.isabs(filename):
cwd = self.get_working_dir() or os.getcwd()
- filename = os.path.normpath(os.path.join(cwd, filename))
- else:
+ filename = os.path.join(cwd, filename)
+
filename = os.path.normpath(filename)
# Some linters work on temp files but actually output 'real', user
