mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Just Use Or
This commit is contained in:
@@ -923,7 +923,7 @@ export default class GitRepositoryAsync {
|
||||
} else if (relativePath.indexOf(`${submodulePath}/`) === 0) {
|
||||
relativePath = relativePath.substring(submodulePath.length + 1)
|
||||
const innerSubmodule = await submoduleRepo._submoduleForPath(relativePath)
|
||||
return innerSubmodule ? innerSubmodule : submoduleRepo
|
||||
return innerSubmodule || submoduleRepo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user