Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Smith <robertdavidsmith@yahoo.com>
  • Loading branch information
robertdavidsmith committed Sep 26, 2024
1 parent a6b70cb commit 6d50099
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion internal/scheduler/internaltypes/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package internaltypes
import (
"math"

"github.com/pkg/errors"
"golang.org/x/exp/maps"
v1 "k8s.io/api/core/v1"

"github.com/armadaproject/armada/internal/scheduler/configuration"
"github.com/armadaproject/armada/internal/scheduler/kubernetesobjects/label"
koTaint "github.com/armadaproject/armada/internal/scheduler/kubernetesobjects/taint"
"github.com/armadaproject/armada/internal/scheduler/schedulerobjects"
"github.com/pkg/errors"
)

const (
Expand Down
8 changes: 0 additions & 8 deletions internal/scheduler/nodedb/nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,6 @@ func NewNodeDb(
return &nodeDb, nil
}

func mapFromSlice(vs []string) map[string]interface{} {
rv := make(map[string]interface{})
for _, v := range vs {
rv[v] = true
}
return rv
}

func makeIndexedResourceResolution(indexedResourceTypes []configuration.ResourceType, resourceListFactory *internaltypes.ResourceListFactory) ([]int64, error) {
if len(indexedResourceTypes) < 1 {
return nil, errors.New("must specify at least one entry in indexedResources in config")
Expand Down

0 comments on commit 6d50099

Please sign in to comment.