소스 검색

API change

Unknown 11 년 전
부모
커밋
0e41726ece
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      models/repo.go

+ 2 - 2
models/repo.go

@@ -455,7 +455,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
 	if repoLang != "" {
 		filePath := "conf/gitignore/" + repoLang
 		if com.IsFile(filePath) {
-			if _, err := com.Copy(filePath,
+			if err := com.Copy(filePath,
 				filepath.Join(tmpDir, fileName["gitign"])); err != nil {
 				return err
 			}
@@ -466,7 +466,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
 	if license != "" {
 		filePath := "conf/license/" + license
 		if com.IsFile(filePath) {
-			if _, err := com.Copy(filePath,
+			if err := com.Copy(filePath,
 				filepath.Join(tmpDir, fileName["license"])); err != nil {
 				return err
 			}