mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix missing-return bug (#2109)
This commit is contained in:
		@@ -394,6 +394,7 @@ func RepoRef() macaron.Handler {
 | 
				
			|||||||
					err = fmt.Errorf("No branches in non-bare repository %s",
 | 
										err = fmt.Errorf("No branches in non-bare repository %s",
 | 
				
			||||||
						ctx.Repo.GitRepo.Path)
 | 
											ctx.Repo.GitRepo.Path)
 | 
				
			||||||
					ctx.Handle(500, "GetBranches", err)
 | 
										ctx.Handle(500, "GetBranches", err)
 | 
				
			||||||
 | 
										return
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				refName = brs[0]
 | 
									refName = brs[0]
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user