Skip to content

Commit

Permalink
Drop redundant use of fmt.Sprintf
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Ulyanov <[email protected]>
  • Loading branch information
vasiliy-ul committed Jul 27, 2023
1 parent 574a4c3 commit 9c45c0b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/storage/reservation/pr.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package reservation

import (
"fmt"
"path/filepath"

v1 "kubevirt.io/api/core/v1"
Expand All @@ -20,15 +19,15 @@ func GetPrResourceName() string {
}

func GetPrHelperSocketDir() string {
return fmt.Sprintf(filepath.Join(sourceDaemonsPath, prHelperDir))
return filepath.Join(sourceDaemonsPath, prHelperDir)
}

func GetPrHelperHostSocketDir() string {
return fmt.Sprintf(filepath.Join(hostSourceDaemonsPath, prHelperDir))
return filepath.Join(hostSourceDaemonsPath, prHelperDir)
}

func GetPrHelperSocketPath() string {
return fmt.Sprintf(filepath.Join(GetPrHelperSocketDir(), prHelperSocket))
return filepath.Join(GetPrHelperSocketDir(), prHelperSocket)
}

func GetPrHelperSocket() string {
Expand Down

0 comments on commit 9c45c0b

Please sign in to comment.