gluon-status-page: fix address_to_groups()
In js `return` does behave like `continue` in a forEach() iteration.
The fixed function was intended to return nothing on error and does so
now, instead of a shorter (useless) array like before.
(cherry picked from commit 8c85be2125)
			
			
This commit is contained in:
		
							parent
							
								
									3e2a53f1d0
								
							
						
					
					
						commit
						2f2d41119b
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -553,7 +553,8 @@ | ||||
| 			var n = parts.length; | ||||
| 			var groups = []; | ||||
| 
 | ||||
| 			parts.forEach(function(part, i) { | ||||
| 			for (var i = 0; i < parts.length; i++) { | ||||
| 				var part = parts[i]; | ||||
| 				if (part === '') { | ||||
| 					while (n++ <= 8) | ||||
| 						groups.push(0); | ||||
| @ -563,7 +564,7 @@ | ||||
| 
 | ||||
| 					groups.push(parseInt(part, 16)); | ||||
| 				} | ||||
| 			}); | ||||
| 			}; | ||||
| 
 | ||||
| 			return groups; | ||||
| 		} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user