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

Skip to content

Commit bfdbd82

Browse files
removed Unnecessary “else” after “return”
1 parent c3c8941 commit bfdbd82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git/objects/submodule/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ def _config_parser_constrained(self, read_only):
233233
def _module_abspath(cls, parent_repo, path, name):
234234
if cls._need_gitfile_submodules(parent_repo.git):
235235
return osp.join(parent_repo.git_dir, 'modules', name)
236-
else:
237-
return osp.join(parent_repo.working_tree_dir, path)
236+
return osp.join(parent_repo.working_tree_dir, path)
238237
# end
239238

240239
@classmethod

0 commit comments

Comments
 (0)