This commit is contained in:
appkins
2025-03-02 20:36:53 -06:00
parent d2a6a40fa3
commit 0760a33186
4 changed files with 10 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ func downloadJar(url *url.URL, outputDir string) (string, error) {
}
}
if uncompressedReader == nil {
return "", fmt.Errorf("unable to find .deb data file")
return "", errors.New("unable to find .deb data file")
}
tarReader := tar.NewReader(uncompressedReader)
@@ -86,7 +86,7 @@ func downloadJar(url *url.URL, outputDir string) (string, error) {
}
if aceJar == nil {
return "", fmt.Errorf("unable to find ace.jar")
return "", errors.New("unable to find ace.jar")
}
defer aceJar.Close()
@@ -192,7 +192,6 @@ func extractJSON(jarFile, fieldsDir string) error {
if err != nil {
return fmt.Errorf("unable to read file: %w", err)
}
}
fmt.Println(file.Name(), file.IsDir())
}