MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / setExecutionProfileItem

Function setExecutionProfileItem

lib/insights-client.js:487–494  ·  view source on GitHub ↗
(output, profile, defaultProfile, prop, valueGetter)

Source from the content-addressed store, hash-verified

485}
486
487function setExecutionProfileItem(output, profile, defaultProfile, prop, valueGetter) {
488 const value = profile[prop];
489 valueGetter = valueGetter || (x => x);
490
491 if ((profile === defaultProfile && value !== undefined) || value !== defaultProfile[prop]) {
492 output[prop] = valueGetter(value);
493 }
494}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected