mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	This commit is contained in:
		@@ -289,7 +289,11 @@ func DeleteTime(ctx *context.APIContext) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	time, err := models.GetTrackedTimeByID(ctx.ParamsInt64(":id"))
 | 
						time, err := models.GetTrackedTimeByID(ctx.ParamsInt64(":id"))
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		ctx.Error(500, "GetTrackedTimeByID", err)
 | 
							if models.IsErrNotExist(err) {
 | 
				
			||||||
 | 
								ctx.NotFound(err)
 | 
				
			||||||
 | 
								return
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							ctx.Error(http.StatusInternalServerError, "GetTrackedTimeByID", err)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user