Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Oct 8, 2024
1 parent 6028c53 commit bb7d561
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion pkg/node/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ package node
import (
"encoding/json"
"fmt"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/application"
"github.com/ava-labs/avalanche-cli/pkg/constants"
"github.com/ava-labs/avalanche-cli/pkg/models"
"github.com/ava-labs/avalanche-cli/pkg/ssh"
"github.com/ava-labs/avalanche-cli/pkg/utils"
"github.com/ava-labs/avalanche-cli/pkg/ux"
"github.com/ava-labs/avalanchego/api/info"
"sync"
)

func checkCluster(app *application.Avalanche, clusterName string) error {
Expand Down
3 changes: 2 additions & 1 deletion pkg/node/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"encoding/json"
"errors"
"fmt"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/application"
"github.com/ava-labs/avalanche-cli/pkg/models"
Expand All @@ -14,7 +16,6 @@ import (
"github.com/ava-labs/avalanche-cli/pkg/utils"
"github.com/ava-labs/avalanche-cli/pkg/ux"
"github.com/ava-labs/avalanchego/utils/set"
"sync"
)

func SyncSubnet(app *application.Avalanche, clusterName, blockchainName string, avoidChecks bool, subnetAliases []string) error {
Expand Down
13 changes: 6 additions & 7 deletions pkg/subnet/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ import (
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
"unicode"

"github.com/ava-labs/avalanche-cli/pkg/application"
"github.com/ava-labs/avalanche-cli/pkg/constants"
"github.com/ava-labs/avalanche-cli/pkg/key"
"github.com/ava-labs/avalanche-cli/pkg/models"
"github.com/ava-labs/avalanche-cli/pkg/utils"
"os"
"path/filepath"
"unicode"
)

var (
errIllegalNameCharacter = errors.New(
"illegal name character: only letters, no special characters allowed")
)
var errIllegalNameCharacter = errors.New(
"illegal name character: only letters, no special characters allowed")

func GetDefaultSubnetAirdropKeyInfo(app *application.Avalanche, subnetName string) (string, string, string, error) {
keyName := utils.GetDefaultBlockchainAirdropKeyName(subnetName)
Expand Down

0 comments on commit bb7d561

Please sign in to comment.