lib/crdt/map.js
Function _setValue
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
RMap.prototype._setValue = function (v) {
var self = this;
if (v && v.map_value) {
self._fields = v.map_value.map(function (entry) {
Function _fields
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self._fields = v.map_value.map(function (entry) {
var value;
switch (mapFieldTypes[entry.field.type]) {
case 'COUNTER':
value = new Counter();