mirror of https://github.com/gogs/gogs.git
chore: remove duplicate error and fix typo error message (#7763)
parent
f4a78e5cfb
commit
6cb018df2f
|
@ -83,9 +83,7 @@ func runImportLocale(c *cli.Context) error {
|
|||
|
||||
tw, err := os.Create(target)
|
||||
if err != nil {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Open: %v", err)
|
||||
}
|
||||
return fmt.Errorf("Create: %v", err)
|
||||
}
|
||||
|
||||
scanner := bufio.NewScanner(sr)
|
||||
|
|
Loading…
Reference in New Issue