mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	doctor: Don't say All done when no checks were run
When there were no checks run, don't say "All done", but "No checks to run" instead, to make it clear what happened. Addresses another part of #1905. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
		
					parent
					
						
							
								7a2ee3340b
							
						
					
				
			
			
				commit
				
					
						d75f13bde7
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -104,7 +104,11 @@ func RunChecks(ctx context.Context, colorize, autofix bool, checks []*Check) err | |||
| 			logger.Info("OK") | ||||
| 		} | ||||
| 	} | ||||
| 	logger.Info("\nAll done.") | ||||
| 	if len(checks) > 0 { | ||||
| 		logger.Info("\nAll done.") | ||||
| 	} else { | ||||
| 		logger.Info("\nNo checks to run.") | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue