mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	ESlint keyword-spacing, no-multi-spaces
This commit is contained in:
		| @@ -12,11 +12,11 @@ helpers.toMap = function (data) { | ||||
| }; | ||||
|  | ||||
| helpers.fieldToString = function (field) { | ||||
| 	if(field === null || field === undefined) { | ||||
| 	if (field === null || field === undefined) { | ||||
| 		return field; | ||||
| 	} | ||||
|  | ||||
| 	if(typeof field !== 'string') { | ||||
| 	if (typeof field !== 'string') { | ||||
| 		field = field.toString(); | ||||
| 	} | ||||
| 	// if there is a '.' in the field name it inserts subdocument in mongo, replace '.'s with \uff0E | ||||
| @@ -25,7 +25,7 @@ helpers.fieldToString = function (field) { | ||||
| }; | ||||
|  | ||||
| helpers.valueToString = function (value) { | ||||
| 	if(value === null || value === undefined) { | ||||
| 	if (value === null || value === undefined) { | ||||
| 		return value; | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user