Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 1 location

@@ 12882-12882 (lines=1) @@
12879
  return r;
12880
}
12881
12882
function base64Text(buf, i) {
12883
  var n = (buf.length - i) % 3;
12884
  if (n === 0) return buf.toString('base64', i);
12885
  this.lastNeed = 3 - n;

node_modules/string_decoder/lib/string_decoder.js 1 location

@@ 245-245 (lines=1) @@
242
  return r;
243
}
244
245
function base64Text(buf, i) {
246
  var n = (buf.length - i) % 3;
247
  if (n === 0) return buf.toString('base64', i);
248
  this.lastNeed = 3 - n;