Skip to content

Commit

Permalink
Restyled by shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and yufengwangca committed Jul 10, 2023
1 parent 03e38e0 commit baaea96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/helpers/kotlin-format.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

#
# Copyright (c) 2020 Project CHIP Authors
# Copyright (c) 2023 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,7 @@ set -e
CHIP_ROOT=$(cd "$here/../.." && pwd)
cd "$CHIP_ROOT"

if ! command -v java &> /dev/null; then
if ! command -v java &>/dev/null; then
echo "Java is not installed. Please install Java and try again."
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers/restyle-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ if [[ -z "$ref" ]]; then
git remote | grep -qxF upstream && ref="upstream/master"
fi

declare -a paths=($(git diff --ignore-submodules --name-only --merge-base "$ref"))
declare -a paths=("$(git diff --ignore-submodules --name-only --merge-base "$ref")")
restyle-paths "${paths[@]}"

0 comments on commit baaea96

Please sign in to comment.