From 0214c5c2443eb6d5d7d16e6978837ea6747d75c3 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Fri, 6 Jan 2023 14:18:55 +0530 Subject: [PATCH] semgrep fix --- .github/workflows/markdown-links.yml | 29 ---------------------------- testutil/network/network.go | 1 + 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 .github/workflows/markdown-links.yml diff --git a/.github/workflows/markdown-links.yml b/.github/workflows/markdown-links.yml deleted file mode 100644 index ace2bbee..00000000 --- a/.github/workflows/markdown-links.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Check Markdown links -on: - pull_request: - paths: - - '**.md' - push: - branches: - - main - paths: - - '**.md' - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - id: git_diff - with: - PATTERNS: | - **/**.md - - uses: gaurav-nelson/github-action-markdown-link-check@master - with: - folder-path: "docs" - check-modified-files-only: "yes" - use-quiet-mode: "yes" - base-branch: "main" - config-file: "mlc_config.json" - if: env.GIT_DIFF diff --git a/testutil/network/network.go b/testutil/network/network.go index c235bc3c..7fb34a26 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -217,6 +217,7 @@ 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)