Skip to content

Commit

Permalink
fix(script): duplicate code detected
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Sep 16, 2023
1 parent 0efa8a5 commit e8c7d29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/libs/checker.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env bash

check_must_success() {
# jscpd:ignore-start
local component="$1" step="$2" args=()
shift 2
args+=("$@")
# jscpd:ignore-end

local input index=0 error
for input in "${args[@]}"; do
Expand All @@ -24,9 +26,11 @@ check_must_success() {
}

check_no_error() {
# jscpd:ignore-start
local component="$1" step="$2" args=()
shift 2
args+=("$@")
# jscpd:ignore-end

local input index=0 error
for input in "${args[@]}"; do
Expand Down

0 comments on commit e8c7d29

Please sign in to comment.