removed unnecessary typecasting
diff --git a/reclass/storage/yaml_git/__init__.py b/reclass/storage/yaml_git/__init__.py
index b212b5e..06d839b 100644
--- a/reclass/storage/yaml_git/__init__.py
+++ b/reclass/storage/yaml_git/__init__.py
@@ -212,7 +212,7 @@
branch = {}
files = self.files_in_branch(bname)
for file in files:
- if str(file.name).endswith(FILE_EXTENSION):
+ if file.name.endswith(FILE_EXTENSION):
name = os.path.splitext(file.name)[0]
relpath = os.path.dirname(file.path)
if callable(self._class_name_mangler):