Skip to content

Commit

Permalink
privilege: Rename Run() method into RunPrivileged()
Browse files Browse the repository at this point in the history
  • Loading branch information
livingsilver94 committed Nov 18, 2023
1 parent 1f45bc0 commit 234ab4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/privilege.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ func (p privilege) Run() error {
if err != nil {
return err
}
return run.Run()
return run.RunPrivileged()
}
2 changes: 1 addition & 1 deletion installer/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ type privilegedPathWriter struct {
Wr FileWriter
}

func (p privilegedPathWriter) Run() error {
func (p privilegedPathWriter) RunPrivileged() error {
return WritePath(p.Dst, p.Src, p.Wr)
}
2 changes: 1 addition & 1 deletion privilege/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

type Runner interface {
Run() error
RunPrivileged() error
}

func RegisterInterfaceImpl(impl any) {
Expand Down

0 comments on commit 234ab4a

Please sign in to comment.