From 4c6599968a7db8d6a05c8c19d1f3dfd09a83e646 Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Wed, 29 Mar 2023 13:11:14 -0400 Subject: [PATCH] Remove Lint Job --- .github/workflows/actions.yaml | 13 ++----------- main.go | 8 +++----- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index 56a1add..50571f9 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -4,7 +4,7 @@ jobs: go-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - uses: actions/setup-go@v2 - run: go version - run: go mod download @@ -12,17 +12,8 @@ jobs: go-vet: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - uses: actions/setup-go@v2 - run: go version - run: go mod download - run: go vet - golangci: - name: lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - args: --timeout 300s diff --git a/main.go b/main.go index 45d7423..c686a16 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,7 @@ var ( NodeAddress string TendermintRPC string LogLevel string - JsonOutput bool + JSONOutput bool Limit uint64 Prefix string @@ -122,7 +122,7 @@ func Execute(cmd *cobra.Command, args []string) { log.Fatal().Err(err).Msg("Could not parse log level") } - if JsonOutput { + if JSONOutput { log = zerolog.New(os.Stdout).With().Timestamp().Logger() } @@ -249,7 +249,6 @@ func setDenom(grpcConn *grpc.ClientConn) { } func checkAndHandleDenomInfoProvidedByUser() bool { - if Denom != "" { if DenomCoefficient != 1 && DenomExponent != 0 { log.Fatal().Msg("denom-coefficient and denom-exponent are both provided. Must provide only one") @@ -277,7 +276,6 @@ func checkAndHandleDenomInfoProvidedByUser() bool { } return false - } func main() { @@ -290,7 +288,7 @@ func main() { rootCmd.PersistentFlags().StringVar(&LogLevel, "log-level", "info", "Logging level") rootCmd.PersistentFlags().Uint64Var(&Limit, "limit", 1000, "Pagination limit for gRPC requests") rootCmd.PersistentFlags().StringVar(&TendermintRPC, "tendermint-rpc", "http://localhost:26657", "Tendermint RPC address") - rootCmd.PersistentFlags().BoolVar(&JsonOutput, "json", false, "Output logs as JSON") + rootCmd.PersistentFlags().BoolVar(&JSONOutput, "json", false, "Output logs as JSON") // some networks, like Iris, have the different prefixes for address, validator and consensus node rootCmd.PersistentFlags().StringVar(&Prefix, "bech-prefix", "persistence", "Bech32 global prefix")