semgrep fix
This commit is contained in:
parent
7c5a9bf9d2
commit
0214c5c244
29
.github/workflows/markdown-links.yml
vendored
29
.github/workflows/markdown-links.yml
vendored
@ -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
|
|
@ -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
|
// only one caller/test can create and use a network at a time
|
||||||
l.Log("acquiring test network lock")
|
l.Log("acquiring test network lock")
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
|
defer lock.Unlock()
|
||||||
|
|
||||||
if !ethermint.IsValidChainID(cfg.ChainID) {
|
if !ethermint.IsValidChainID(cfg.ChainID) {
|
||||||
return nil, fmt.Errorf("invalid chain-id: %s", cfg.ChainID)
|
return nil, fmt.Errorf("invalid chain-id: %s", cfg.ChainID)
|
||||||
|
Loading…
Reference in New Issue
Block a user