Commit 7cdb8305 authored by Sven Strickroth's avatar Sven Strickroth

Drop superfluous null checks

Signed-off-by: Sven Strickroth's avatarSven Strickroth <email@cs-ware.de>
parent 44fb704f
......@@ -1857,7 +1857,7 @@ void CGitStatusListCtrl::OnContextMenuList(CWnd * pWnd, CPoint point)
if (!m_sMarkForDiffFilename.IsEmpty())
{
CString diffWith;
if (filepath && filepath->GetGitPathString() == m_sMarkForDiffFilename)
if (filepath->GetGitPathString() == m_sMarkForDiffFilename)
diffWith = m_sMarkForDiffVersion;
else
{
......@@ -2080,17 +2080,12 @@ void CGitStatusListCtrl::OnContextMenuList(CWnd * pWnd, CPoint point)
break;
case IDGITLC_PREPAREDIFF:
if (!filepath)
return;
m_sMarkForDiffFilename = filepath->GetGitPathString();
m_sMarkForDiffVersion = m_CurrentVersion;
break;
case IDGITLC_PREPAREDIFF_COMPARE:
{
if (!filepath)
return;
CTGitPath savedFile(m_sMarkForDiffFilename);
CGitDiff::Diff(filepath, &savedFile, m_CurrentVersion, m_sMarkForDiffVersion);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment