Fix IDE warnings

This commit is contained in:
2025-09-26 10:23:51 +03:00
parent 264a0f87ba
commit ea6d722fa8
3 changed files with 9 additions and 21 deletions
+1 -9
View File
@@ -178,10 +178,10 @@ func ReadPackage(filename string) (*BPMPackage, error) {
}
file, err := os.Open(filename)
defer file.Close()
if err != nil {
return nil, err
}
defer file.Close()
tr := tar.NewReader(file)
for {
@@ -304,14 +304,6 @@ func ReadPackageScripts(filename string) (map[string]string, error) {
return ret, nil
}
type packageOperation uint8
const (
packageOperationInstall packageOperation = 0
packageOperationUpdate = 1
packageOperationRemove = 2
)
func executePackageScript(pkg, rootDir string, verbose bool, packageScript string) error {
var bpmpkg *BPMPackage
var err error