diff --git a/lldb/tools/lldb-mi/MICmdFactory.cpp b/lldb/tools/lldb-mi/MICmdFactory.cpp index e1e4befd7280..338a80de14a4 100644 --- a/lldb/tools/lldb-mi/MICmdFactory.cpp +++ b/lldb/tools/lldb-mi/MICmdFactory.cpp @@ -158,19 +158,16 @@ bool CMICmdFactory::HaveAlready( const CMIUtilString & vMiCmd ) const //-- bool CMICmdFactory::IsValid( const CMIUtilString & vMiCmd ) const { - bool bValid = true; - if( vMiCmd.empty() ) { - bValid = false; return false; } const MIint nPos = vMiCmd.find( " " ); if( nPos != (MIint) std::string::npos ) - bValid = false; - - return bValid; + return false; + + return true; } //++ ------------------------------------------------------------------------------------ @@ -226,4 +223,4 @@ bool CMICmdFactory::CmdCreate( const CMIUtilString & vMiCmd, const SMICmdData & vpNewCmd = pCmd; return bOk; -} \ No newline at end of file +}