Skip to content

Commit

Permalink
cleanup: fixup linter warnings in schedular/feasible.go
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Sep 27, 2022
1 parent b4cd9af commit f044b6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scheduler/feasible.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strconv"
"strings"

memdb "github.com/hashicorp/go-memdb"
version "github.com/hashicorp/go-version"
"github.com/hashicorp/go-memdb"
"github.com/hashicorp/go-version"
"github.com/hashicorp/nomad/helper/constraints/semver"
"github.com/hashicorp/nomad/nomad/structs"
psstructs "github.com/hashicorp/nomad/plugins/shared/structs"
Expand Down Expand Up @@ -57,7 +57,7 @@ type FeasibleIterator interface {
Reset()
}

// JobContextualIterator is an iterator that can have the job and task group set
// ContextualIterator is an iterator that can have the job and task group set
// on it.
type ContextualIterator interface {
SetJob(*structs.Job)
Expand Down Expand Up @@ -878,7 +878,7 @@ func checkLexicalOrder(op string, lVal, rVal interface{}) bool {

// checkVersionMatch is used to compare a version on the
// left hand side with a set of constraints on the right hand side
func checkVersionMatch(ctx Context, parse verConstraintParser, lVal, rVal interface{}) bool {
func checkVersionMatch(_ Context, parse verConstraintParser, lVal, rVal interface{}) bool {
// Parse the version
var versionStr string
switch v := lVal.(type) {
Expand Down Expand Up @@ -914,7 +914,7 @@ func checkVersionMatch(ctx Context, parse verConstraintParser, lVal, rVal interf

// checkAttributeVersionMatch is used to compare a version on the
// left hand side with a set of constraints on the right hand side
func checkAttributeVersionMatch(ctx Context, parse verConstraintParser, lVal, rVal *psstructs.Attribute) bool {
func checkAttributeVersionMatch(_ Context, parse verConstraintParser, lVal, rVal *psstructs.Attribute) bool {
// Parse the version
var versionStr string
if s, ok := lVal.GetString(); ok {
Expand Down Expand Up @@ -982,7 +982,7 @@ func checkRegexpMatch(ctx Context, lVal, rVal interface{}) bool {

// checkSetContainsAll is used to see if the left hand side contains the
// string on the right hand side
func checkSetContainsAll(ctx Context, lVal, rVal interface{}) bool {
func checkSetContainsAll(_ Context, lVal, rVal interface{}) bool {
// Ensure left-hand is string
lStr, ok := lVal.(string)
if !ok {
Expand Down

0 comments on commit f044b6d

Please sign in to comment.