1
0
Fork 0

jslint && cppcheck

This commit is contained in:
jsteemann 2017-03-06 16:13:04 +01:00
parent 9d3bbd1d89
commit e495b5fb6c
2 changed files with 3 additions and 7 deletions

View File

@ -56,9 +56,8 @@ inline std::size_t validateAndCount(char const* vpStart,
validationOptions.validateUtf8Strings = true;
VPackValidator validator(&validationOptions);
std::size_t numPayloads = 0;
try {
std::size_t numPayloads = 0;
// check for slice start to the end of Chunk
// isSubPart allows the slice to be shorter than the checked buffer.
do {

View File

@ -35,8 +35,6 @@ var jsunity = require('jsunity');
function runSetup () {
require("console").log("Hund");
db._drop('UnitTestsRecovery');
db._create('UnitTestsRecovery');
@ -44,7 +42,7 @@ function runSetup () {
db._create('UnitTestsRecovery');
} catch (e) {
// This intentionally should fail!
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code == e.errorNum) {
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code === e.errorNum) {
// Only this is a valid return code from the server
return 0;
}
@ -62,9 +60,8 @@ function recoverySuite () {
tearDown: function () {},
testCollectionDuplicateName: function () {
require("console").log("Kartze");
var c = db._collection('UnitTestsRecovery');
assertTrue(c != null && c != undefined);
assertTrue(c !== null && c !== undefined);
}
};
};