MCPcopy Index your code
hub / github.com/scality/cloudserver / _validateKeys

Function _validateKeys

lib/utilities/validateQueryAndHeaders.js:5–15  ·  view source on GitHub ↗
(unsupportedKeys, obj)

Source from the content-addressed store, hash-verified

3const constants = require('../../constants');
4
5function _validateKeys(unsupportedKeys, obj) {
6 let unsupportedKey;
7 unsupportedKeys.some(key => {
8 if (obj[key] !== undefined) {
9 unsupportedKey = key;
10 return true;
11 }
12 return false;
13 });
14 return unsupportedKey;
15}
16
17
18/**

Callers 1

validateQueryAndHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected