Browse Source

chore: remove duplicate error and fix typo error message (#7763)

idnandre 3 months ago
parent
commit
6cb018df2f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      internal/cmd/import.go

+ 1 - 3
internal/cmd/import.go

@@ -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)