chore: small fixes and cosmetic.

This commit is contained in:
Alexandre Pujol 2024-06-04 20:01:05 +01:00
parent 41c0e57eca
commit d98621625a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
8 changed files with 14 additions and 17 deletions

View file

@ -93,8 +93,3 @@ type DebianHider struct {
func (d DebianHider) Init() error {
return d.path.WriteFile([]byte(Hide))
}
// Initialize the file with content from Hide
func (d DebianHider) Clean() error {
return d.path.WriteFile([]byte("# This file is generated by \"make\", all edit will be lost.\n"))
}

View file

@ -35,7 +35,7 @@ func (p Configure) Apply() ([]string, error) {
}
case "ubuntu":
if err := cfg.DebianHide.Clean(); err != nil {
if err := cfg.DebianHide.Init(); err != nil {
return res, err
}