Commit 5125a479 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Git: Remove redundant null validations

Change-Id: I6977b7c7633191d768c39d0bfff43c8aedecae9d
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent e8d6ce1c
......@@ -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)
......
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