From 5d15a0a7a646676b4e8d4cb02e0b6dcc15d00d85 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Thu, 28 May 2020 13:44:07 +0300 Subject: [PATCH] [git-index] cleanup GitOrigin-RevId: feab07d36367a1b0b83f5a4f1dae4436e6b473a5 --- plugins/git4idea/src/git4idea/index/ui/GitStageTree.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git4idea/src/git4idea/index/ui/GitStageTree.kt b/plugins/git4idea/src/git4idea/index/ui/GitStageTree.kt index a4f465a76394..f7505b9c3e9b 100644 --- a/plugins/git4idea/src/git4idea/index/ui/GitStageTree.kt +++ b/plugins/git4idea/src/git4idea/index/ui/GitStageTree.kt @@ -125,8 +125,8 @@ abstract class GitStageTree(project: Project) : ChangesTree(project, false, true private fun getMovedRelativePath(userObject: GitFileStatusNode): String? { val origPath = userObject.origPath - if (origPath == null || origPath!!.parentPath == userObject.filePath.parentPath) return null - return PlatformVcsPathPresenter.getPresentableRelativePath(userObject.filePath, origPath!!) + if (origPath == null || origPath.parentPath == userObject.filePath.parentPath) return null + return PlatformVcsPathPresenter.getPresentableRelativePath(userObject.filePath, origPath) } }