Removes unnecessary check `sourceDirs is None`

This commit is contained in:
Carlos Nihelton 2022-02-17 07:07:19 -03:00 committed by GitHub
parent a7fd83a384
commit e79e4ea9a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class ConfigureController(SubiquityController):
candidateSourceDirs = ["/usr/lib/locale/C.UTF-8/",
"/usr/lib/locale/C.utf8/"]
sourceDirs = [d for d in candidateSourceDirs if os.path.exists(d)]
if len(sourceDirs) == 0 or sourceDirs is None:
if len(sourceDirs) == 0:
log.error("No available LC_* definitions found in this system")
return ("", False)