mirror of
https://github.com/gogs/gogs.git
synced 2026-01-02 05:30:07 +01:00
chore: remove duplicate error and fix typo error message (#7763)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user