Linting and dockerization.

This commit is contained in:
2019-10-07 21:51:45 +05:00
parent cd6e739dc2
commit 355dac8ea3
9 changed files with 56 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ func packagesGET(ec echo.Context) error {
pkgs, errors = configuration.Cfg.GetPackagesInfo(req.PackageNames)
}
if errors != nil && len(errors) > 0 {
if len(errors) > 0 {
return ec.JSON(http.StatusBadRequest, &structs.Reply{Status: structs.StatusFailure, Errors: errors, Data: pkgs})
}