mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	chore: eslint prefer-template
This commit is contained in:
		
				
					committed by
					
						 Julian Lam
						Julian Lam
					
				
			
			
				
	
			
			
			
						parent
						
							4ee0f1459d
						
					
				
				
					commit
					707b55b6a5
				
			| @@ -11,7 +11,7 @@ hooksController.get = function (req, res) { | ||||
| 		const current = { | ||||
| 			hookName: key, | ||||
| 			methods: [], | ||||
| 			index: 'hook-' + hookIndex, | ||||
| 			index: `hook-${hookIndex}`, | ||||
| 			count: plugins.loadedHooks[key].length, | ||||
| 		}; | ||||
|  | ||||
| @@ -20,7 +20,7 @@ hooksController.get = function (req, res) { | ||||
| 				id: hookData.id, | ||||
| 				priority: hookData.priority, | ||||
| 				method: hookData.method ? validator.escape(hookData.method.toString()) : 'No plugin function!', | ||||
| 				index: hookIndex + '-code-' + methodIndex, | ||||
| 				index: `${hookIndex}-code-${methodIndex}`, | ||||
| 			}); | ||||
| 		}); | ||||
| 		hooks.push(current); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user