mirror of https://gitee.com/bigwinds/arangodb
fix two minor issues reported by cppcheck
This commit is contained in:
parent
727f609863
commit
ccf2a1e59d
|
@ -247,10 +247,6 @@ bool TailingSyncer::skipMarker(TRI_voc_tick_t firstRegularTick, VPackSlice const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tooOld) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// the transient applier state is just used for one shard / collection
|
// the transient applier state is just used for one shard / collection
|
||||||
if (_state.applier._restrictCollections.empty()) {
|
if (_state.applier._restrictCollections.empty()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1522,7 +1522,6 @@ static void JS_DebugShouldFailAt(v8::FunctionCallbackInfo<v8::Value> const& args
|
||||||
if (v8g->_vocbase == nullptr) {
|
if (v8g->_vocbase == nullptr) {
|
||||||
TRI_V8_THROW_EXCEPTION_MEMORY();
|
TRI_V8_THROW_EXCEPTION_MEMORY();
|
||||||
}
|
}
|
||||||
std::string dbname(v8g->_vocbase->name());
|
|
||||||
|
|
||||||
// extract arguments
|
// extract arguments
|
||||||
if (args.Length() != 1) {
|
if (args.Length() != 1) {
|
||||||
|
|
Loading…
Reference in New Issue