Skip to content

Commit fb00ae4

Browse files
authored
Merge pull request #1386 from vil02/resolve_consider-using-in
Resolve `consider-using-in`
2 parents 9e2c9f1 + 93a9f00 commit fb00ae4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rpmlint/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def _expand_filelist(self, files):
260260

261261
def validate_file(self, pname, is_last):
262262
try:
263-
if pname.suffix == '.rpm' or pname.suffix == '.spm':
263+
if pname.suffix in ('.rpm', '.spm'):
264264
with Pkg(pname, self.config.configuration['ExtractDir'],
265265
verbose=self.config.info) as pkg:
266266
for k, v in pkg.timers.items():

0 commit comments

Comments
 (0)