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
}
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
}