mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
cmMakefile: Remove unneeded check
Don't check whether the variable watch is null before returning either the variable watch or `nullptr`, as that is clearly redundant.
This commit is contained in:
@@ -3370,8 +3370,7 @@ cmGlobalGenerator* cmMakefile::GetGlobalGenerator() const
|
||||
#ifndef CMAKE_BOOTSTRAP
|
||||
cmVariableWatch* cmMakefile::GetVariableWatch() const
|
||||
{
|
||||
if (this->GetCMakeInstance() &&
|
||||
this->GetCMakeInstance()->GetVariableWatch()) {
|
||||
if (this->GetCMakeInstance()) {
|
||||
return this->GetCMakeInstance()->GetVariableWatch();
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user