From f035e13a4248c1ebf9742c0f6584da3fc5d43e16 Mon Sep 17 00:00:00 2001 From: Francois Hardrouyere Date: Mon, 29 Apr 2024 12:37:12 +0200 Subject: [PATCH] lint --- x/programs/cmd/simulator/cmd/plan.go | 2 +- x/programs/cmd/simulator/cmd/program.go | 1 - x/programs/examples/imports/program/program.go | 1 - x/programs/examples/storage/storage.go | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/x/programs/cmd/simulator/cmd/plan.go b/x/programs/cmd/simulator/cmd/plan.go index 345848fb93..e5de31fad6 100644 --- a/x/programs/cmd/simulator/cmd/plan.go +++ b/x/programs/cmd/simulator/cmd/plan.go @@ -357,7 +357,7 @@ func (c *runCmd) verifyProgramIDStr(idStr string) (string, error) { // myId, err := ids.FromString(idStr) if err == nil { return idStr, nil - //return myId, nil + // return myId, nil } diff --git a/x/programs/cmd/simulator/cmd/program.go b/x/programs/cmd/simulator/cmd/program.go index d0c9a98307..7a2b33012b 100644 --- a/x/programs/cmd/simulator/cmd/program.go +++ b/x/programs/cmd/simulator/cmd/program.go @@ -144,7 +144,6 @@ func programExecuteFunc( ) (ids.ID, []int64, uint64, error) { // simulate create program transaction programTxID, err := generateRandomID() - if err != nil { return ids.Empty, nil, 0, err } diff --git a/x/programs/examples/imports/program/program.go b/x/programs/examples/imports/program/program.go index ada35169e9..80f0eff35e 100644 --- a/x/programs/examples/imports/program/program.go +++ b/x/programs/examples/imports/program/program.go @@ -224,6 +224,5 @@ func getProgramWasmBytes(log logging.Logger, db state.Immutable, idBytes []byte) return nil, err } - return bytes, nil } diff --git a/x/programs/examples/storage/storage.go b/x/programs/examples/storage/storage.go index 415eba1aba..c42759879a 100644 --- a/x/programs/examples/storage/storage.go +++ b/x/programs/examples/storage/storage.go @@ -15,7 +15,7 @@ import ( ) const ( - programPrefix = 0x0 + programPrefix = 0x0 ProgramChunks uint16 = 1 )