Skip to content

Commit

Permalink
🤖 simplify variable unset/null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 2, 2024
1 parent fd01c83 commit 86fba7f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ jobs:
dependency_msrv="$(./cargo-msrv list --output-format json 2>&1 | jq -r '.result.list[0].msrv' | tail -n 1)"
echo "defined_msrv=$defined_msrv"
echo "dependency_msrv=$dependency_msrv"
if [ -z "$defined_msrv" ] || [ -z "$dependency_msrv" ]; then
echo "::error::Failed to detect MSRV"
exit 1
fi
if [ "$defined_msrv" != "$dependency_msrv" ]; then
if [ "${defined_msrv:?}" != "${dependency_msrv:?}" ]; then
echo "::error::MSRV changed | defined: '$defined_msrv', absolute: '$dependency_msrv'"
exit 1
fi
Expand Down

0 comments on commit 86fba7f

Please sign in to comment.