8000 jslint && cppcheck · georgekaf/arangodb@e495b5f · GitHub
[go: up one dir, main page]

Skip to content

Commit e495b5f

Browse files
committed
jslint && cppcheck
1 parent 9d3bbd1 commit e495b5f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

arangod/GeneralServer/VppCommTask.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ inline std::size_t validateAndCount(char const* vpStart,
5656
validationOptions.validateUtf8Strings = true;
5757
VPackValidator validator(&validationOptions);
5858

59-
std::size_t numPayloads = 0;
60-
6159
try {
60+
std::size_t numPayloads = 0;
6261
// check for slice start to the end of Chunk
6362
// isSubPart allows the slice to be shorter than the checked buffer.
6463
do {

js/server/tests/recovery/collection-duplicate-name.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ var jsunity = require('jsunity');
3535

3636

3737
function runSetup () {
38-
require("console").log("Hund");
39-
4038
db._drop('UnitTestsRecovery');
4139
db._create('UnitTestsRecovery');
4240

4341
try {
4442
db._create('UnitTestsRecovery');
4543
} catch (e) {
4644
// This intentionally should fail!
47-
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code == e.errorNum) {
45+
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code === e.errorNum) {
4846
// Only this is a valid return code from the server
4947
return 0;
5048
}
@@ -62,9 +60,8 @@ function recoverySuite () {
6260
tearDown: function () {},
6361

6462
testCollectionDuplicateName: function () {
65-
require("console").log("Kartze");
6663
var c = db._collection('UnitTestsRecovery');
67-
assertTrue(c != null && c != undefined);
64+
assertTrue(c !== null && c !== undefined);
6865
}
6966
};
7067
};

0 commit comments

Comments
 (0)
0