Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc7d59d

Browse files
removed unnecessary typecasting
1 parent 961aa7f commit cc7d59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reclass/storage/yaml_git/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def files_in_repo(self):
212212
branch = {}
213213
files = self.files_in_branch(bname)
214214
for file in files:
215-
if str(file.name).endswith(FILE_EXTENSION):
215+
if file.name.endswith(FILE_EXTENSION):
216216
name = os.path.splitext(file.name)[0]
217217
relpath = os.path.dirname(file.path)
218218
if callable(self._class_name_mangler):

0 commit comments

Comments
 (0)