From 5125a47955b76f4ea3021ef78bee987912f31f77 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 19 May 2014 23:33:44 +0300 Subject: [PATCH] Git: Remove redundant null validations Change-Id: I6977b7c7633191d768c39d0bfff43c8aedecae9d Reviewed-by: Tobias Hunger --- src/plugins/git/branchdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/git/branchdialog.cpp b/src/plugins/git/branchdialog.cpp index f6500699bd2..6badb5e29f1 100644 --- a/src/plugins/git/branchdialog.cpp +++ b/src/plugins/git/branchdialog.cpp @@ -208,7 +208,7 @@ void BranchDialog::checkout() !branchCheckoutDialog.hasStashForNextBranch()) { // No local changes and no Auto Stash - no need to open dialog m_model->checkoutBranch(idx); - } else if (branchCheckoutDialog.exec() == QDialog::Accepted && m_model) { + } else if (branchCheckoutDialog.exec() == QDialog::Accepted) { if (branchCheckoutDialog.makeStashOfCurrentBranch()) { if (gitClient->synchronousStash(m_repository, @@ -292,7 +292,7 @@ void BranchDialog::rename() branchAddDialog.exec(); - if (branchAddDialog.result() == QDialog::Accepted && m_model) { + if (branchAddDialog.result() == QDialog::Accepted) { if (branchAddDialog.branchName() == oldName) return; if (isTag)