chore: apply some linter recommendations.
This commit is contained in:
parent
3b6b50cf63
commit
984cf28e61
37 changed files with 125 additions and 126 deletions
|
|
@ -18,7 +18,7 @@ var (
|
|||
Tasks = map[string]Task{}
|
||||
)
|
||||
|
||||
// Main directive interface
|
||||
// Task main directive interface
|
||||
type Task interface {
|
||||
prebuild.BaseInterface
|
||||
Apply() ([]string, error)
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ func (p FullSystemPolicy) Apply() ([]string, error) {
|
|||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
out = strings.Replace(out, "@{p_systemd}=unconfined", "@{p_systemd}=systemd", -1)
|
||||
out = strings.Replace(out, "@{p_systemd_user}=unconfined", "@{p_systemd_user}=systemd-user", -1)
|
||||
out = strings.ReplaceAll(out, "@{p_systemd}=unconfined", "@{p_systemd}=systemd")
|
||||
out = strings.ReplaceAll(out, "@{p_systemd_user}=unconfined", "@{p_systemd_user}=systemd-user")
|
||||
if err := path.WriteFile([]byte(out)); err != nil {
|
||||
return res, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue