mirror of https://github.com/jetkvm/kvm.git
Update utils.go
Removed abs() function since lint states it is no longer used.
This commit is contained in:
parent
f085e5e501
commit
16815a71b1
|
@ -7,14 +7,6 @@ import (
|
|||
"path/filepath"
|
||||
)
|
||||
|
||||
// Helper function to get absolute value of float64
|
||||
func abs(x float64) float64 {
|
||||
if x < 0 {
|
||||
return -x
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
func joinPath(basePath string, paths []string) string {
|
||||
pathArr := append([]string{basePath}, paths...)
|
||||
return filepath.Join(pathArr...)
|
||||
|
|
Loading…
Reference in New Issue