Skip to content

Commit

Permalink
fix: add missing file for prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kloubert committed May 12, 2024
1 parent 2fac459 commit 61dc596
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions types/app_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ func (app *AppContext) LoadAliasesFileIfExist() bool {
// and return `true` if file has been loaded successfully.
func (app *AppContext) LoadGpmFileIfExist() bool {
defer func() {
if app.GpmFile.Packages == nil {
app.GpmFile.Packages = map[string]GpmFilePackageItem{}
}
if app.GpmFile.Scripts == nil {
app.GpmFile.Scripts = map[string]string{}
}
Expand Down
8 changes: 1 addition & 7 deletions types/gpm_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,5 @@ package types

// A GpmFile stores all data of a gpm.y(a)ml file.
type GpmFile struct {
Packages map[string]GpmFilePackageItem `yaml:"packages"` // the package mappings
Scripts map[string]string `yaml:"scripts"` // one or more scripts
}

// A GpmFilePackageItem is an item inside `PackagesFile.Packages` map.
type GpmFilePackageItem struct {
Sources []string `yaml:"sources"` // one or more source repositories
Scripts map[string]string `yaml:"scripts"` // one or more scripts
}

0 comments on commit 61dc596

Please sign in to comment.