Skip to content

Commit 2c195d0

Browse files
committed
code refactoring.
1 parent 841ea50 commit 2c195d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/helpers/columnSet.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function ColumnSet(columns, options) {
297297
* @returns {string}
298298
* Comma-separated list of variable-to-column assignments.
299299
*/
300-
this.assign = function (source) {
300+
this.assign = source => {
301301
if (updates) {
302302
return updates;
303303
}
@@ -379,7 +379,7 @@ function ColumnSet(columns, options) {
379379
* // ]
380380
* // }
381381
*/
382-
this.extend = function (columns) {
382+
this.extend = columns => {
383383
var cs = columns;
384384
if (!(cs instanceof ColumnSet)) {
385385
cs = new ColumnSet(columns);
@@ -448,7 +448,7 @@ function ColumnSet(columns, options) {
448448
* // }
449449
*
450450
*/
451-
this.merge = function (columns) {
451+
this.merge = columns => {
452452
var cs = columns;
453453
if (!(cs instanceof ColumnSet)) {
454454
cs = new ColumnSet(columns);
@@ -491,7 +491,7 @@ function ColumnSet(columns, options) {
491491
*
492492
* When the object does not need to be prepared, the original object is returned.
493493
*/
494-
this.prepare = function (source) {
494+
this.prepare = source => {
495495
if (isSimple) {
496496
return source; // a simple ColumnSet requires no object preparation;
497497
}

0 commit comments

Comments
 (0)