null+****@clear*****
null+****@clear*****
2011年 11月 25日 (金) 09:44:32 JST
Yoji SHIDARA 2011-11-25 00:44:32 +0000 (Fri, 25 Nov 2011) New Revision: 2d5adeb4e9c4f19dc5e1f79c0fbbce7a23b708cc Log: remove redundant error checking Modified files: src/nroonga.cc Modified: src/nroonga.cc (+0 -3) =================================================================== --- src/nroonga.cc 2011-11-24 08:43:02 +0000 (40b4625) +++ src/nroonga.cc 2011-11-25 00:44:32 +0000 (62cc6d3) @@ -44,9 +44,6 @@ Handle<Value> Database::New(const Arguments& args) { if (ctx->rc != GRN_SUCCESS) { return ThrowException(Exception::Error(String::New(ctx->errbuf))); } - if (!db->database) { - return ThrowException(Exception::Error(String::New("DB open failed"))); - } } else { return ThrowException(Exception::TypeError(String::New("Bad parameter"))); }