Skip to content

Commit

Permalink
fixing a mistake in the guard condition
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Bustamante <[email protected]>
  • Loading branch information
jjbustamante committed Mar 1, 2024
1 parent b2db907 commit 38ce8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/commands/buildpack_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func BuildpackPackage(logger logging.Logger, cfg config.Config, packager Buildpa
var order dist.Order
// We need to read buildpack.toml to inspect the given targets
pathToBuildpackToml := filepath.Join(relativeBaseDir, "buildpack.toml")
if _, err = os.Stat(pathToBuildpackToml); err != nil {
if _, err = os.Stat(pathToBuildpackToml); err == nil {
buildpackCfg, err := packageConfigReader.ReadBuildpackDescriptor(pathToBuildpackToml)
if err != nil {
return err
Expand Down

0 comments on commit 38ce8a7

Please sign in to comment.