Skip to content

Commit ffca1b5

Browse files
committed
Improve formatting
1 parent ad7984b commit ffca1b5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/data-structures/red-black-tree.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@
2121
'key value left right'
2222
.split(' ')
2323
.forEach(function (key) {
24-
2524
var valueName = key.substr(0, 1).toUpperCase() + key.substr(1, key.length);
26-
2725
Node.prototype['get' + valueName] = function () {
2826
return this['_' + key];
2927
};
30-
3128
Node.prototype['set' + valueName] = function (val) {
3229
this['_' + key] = val;
3330
};
34-
3531
});
3632

3733
global.Node = Node;

0 commit comments

Comments
 (0)