From 60afa0222a0c567a0b9505bfcf1c4014d285d6a0 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Fri, 6 Jan 2023 15:40:33 +0530 Subject: [PATCH] remove semgrep ignore --- testutil/network/network.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/testutil/network/network.go b/testutil/network/network.go index 7a041527..c235bc3c 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -213,12 +213,10 @@ func NewCLILogger(cmd *cobra.Command) CLILogger { } // New creates a new Network for integration tests or in-process testnets run via the CLI -// nosemgrep: missing-unlock-before-return func New(l Logger, baseDir string, cfg Config) (*Network, error) { // only one caller/test can create and use a network at a time l.Log("acquiring test network lock") lock.Lock() - // defer lock.Unlock() if !ethermint.IsValidChainID(cfg.ChainID) { return nil, fmt.Errorf("invalid chain-id: %s", cfg.ChainID)