mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	Fix space-before-function-paren linter rule
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| var helpers = {}; | ||||
|  | ||||
| helpers.toMap = function(data) { | ||||
| helpers.toMap = function (data) { | ||||
| 	var map = {}; | ||||
| 	for (var i = 0; i < data.length; ++i) { | ||||
| 		map[data[i]._key] = data[i]; | ||||
| @@ -11,7 +11,7 @@ helpers.toMap = function(data) { | ||||
| 	return map; | ||||
| }; | ||||
|  | ||||
| helpers.fieldToString = function(field) { | ||||
| helpers.fieldToString = function (field) { | ||||
| 	if(field === null || field === undefined) { | ||||
| 		return field; | ||||
| 	} | ||||
| @@ -24,7 +24,7 @@ helpers.fieldToString = function(field) { | ||||
| 	return field; | ||||
| }; | ||||
|  | ||||
| helpers.valueToString = function(value) { | ||||
| helpers.valueToString = function (value) { | ||||
| 	if(value === null || value === undefined) { | ||||
| 		return value; | ||||
| 	} | ||||
| @@ -32,6 +32,6 @@ helpers.valueToString = function(value) { | ||||
| 	return value.toString(); | ||||
| }; | ||||
|  | ||||
| helpers.noop = function() {}; | ||||
| helpers.noop = function () {}; | ||||
|  | ||||
| module.exports = helpers; | ||||
		Reference in New Issue
	
	Block a user