bad javascript habits.

This commit is contained in:
Christopher Jeffrey 2014-10-15 15:42:21 -07:00
parent c54c031a6c
commit 13604f1e07
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ NAN_METHOD(StartBitcoind) {
Local<Function> callback;
std::string datadir = std::string("");
if (args.Length() === 2 && args[0]->IsObject() && args[1]->IsFunction()) {
if (args.Length() == 2 && args[0]->IsObject() && args[1]->IsFunction()) {
Local<Object> options = Local<Object>::Cast(args[0]);
String::Utf8Value datadir_(options->Get(NanNew<String>("datadir"))->ToString());
datadir = std::string(*datadir_);