MCPcopy Index your code
hub / github.com/PokemonGoF/PokemonGo-Bot / chunkInvalid

Function chunkInvalid

map-chat/javascript/browserMqtt.js:3181–3191  ·  view source on GitHub ↗
(state, chunk)

Source from the content-addressed store, hash-verified

3179};
3180
3181function chunkInvalid(state, chunk) {
3182 var er = null;
3183 if (!Buffer.isBuffer(chunk) &&
3184 'string' !== typeof chunk &&
3185 chunk !== null &&
3186 chunk !== undefined &&
3187 !state.objectMode) {
3188 er = new TypeError('Invalid non-string/buffer chunk');
3189 }
3190 return er;
3191}
3192
3193
3194function onEofChunk(stream, state) {

Callers 1

readableAddChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected