Skip to content

Commit

Permalink
refactor: Use camelCase for vars
Browse files Browse the repository at this point in the history
Signed-off-by: mahendrapaipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Nov 28, 2023
1 parent 6938894 commit 63d017c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
)

var (
NODENAME_REGEXP = regexp.MustCompile(`(\[\d+\-\d+\])`)
nodelistRegExp = regexp.MustCompile(`(\[\d+\-\d+\])`)
)

// Execute command and return stdout/stderr
Expand Down Expand Up @@ -75,7 +75,7 @@ func NodelistParser(nodelistExp string) []string {
for _, nodeexp := range strings.Split(nodelistExp, ",") {
// If it contains "[", it means they are range of nodes
if strings.Contains(nodeexp, "[") {
matches := NODENAME_REGEXP.FindAllString(nodeexp, -1)
matches := nodelistRegExp.FindAllString(nodeexp, -1)
if len(matches) == 0 {
continue
}
Expand Down

0 comments on commit 63d017c

Please sign in to comment.