소스 검색

[GinR] Do not show warning about missing license

cgars 7 년 전
부모
커밋
e15dc407b9
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      routes/repo/view.go

+ 1 - 2
routes/repo/view.go

@@ -89,10 +89,9 @@ func renderDirectory(c *context.Context, treeLink string) {
 			}
 			log.Trace("Doi info was: %v ", doiInfo)
 			c.Data["DoiInfo"] = doiInfo
-		} else if entry.Name() == "LICENSE" {
-			c.Data["LicenseExists"] = true
 		}
 	}
+	c.Data["LicenseExists"] = true
 
 	if readmeFile != nil {
 		c.Data["RawFileLink"] = ""