Skip to content

Commit 99b876c

Browse files
authored
Merge pull request #2302 from Bash-it/ira/lintfix
2 parents 7308748 + e9846fd commit 99b876c

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

clean_files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ themes/oh-my-posh
7272
themes/p4helpers.theme.bash
7373
themes/pete
7474
themes/powerline
75-
themes/powerline-naked
7675
themes/powerline-multiline
76+
themes/powerline-naked
7777
themes/pure
7878
themes/purity
7979
themes/rjorgenson

test/lib/utilities.bats

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,68 +7,68 @@ function local_setup_file() {
77
}
88

99
@test "utilities: _is_function: _command_exists" {
10-
run _is_function _command_exists
11-
assert_success
10+
run _is_function _command_exists
11+
assert_success
1212
}
1313

1414
@test "utilities: _command_exists function positive test ls" {
15-
run _command_exists ls
16-
assert_success
15+
run _command_exists ls
16+
assert_success
1717
}
1818

1919
@test "utilities: _command_exists function positive test bash-it" {
20-
run _command_exists bash-it
21-
assert_success
20+
run _command_exists bash-it
21+
assert_success
2222
}
2323

2424
@test "utilities: _command_exists function negative test" {
25-
run _command_exists "__addfkds_dfdsjdf_${RANDOM:-}"
26-
assert_failure
25+
run _command_exists "__addfkds_dfdsjdf_${RANDOM:-}"
26+
assert_failure
2727
}
2828

2929
@test "utilities: _is_function: _binary_exists" {
30-
run _is_function _binary_exists
31-
assert_success
30+
run _is_function _binary_exists
31+
assert_success
3232
}
3333

3434
@test "utilities: _binary_exists function positive test ls" {
35-
run _binary_exists ls
36-
assert_success
35+
run _binary_exists ls
36+
assert_success
3737
}
3838

3939
@test "utilities: _binary_exists function negative test function" {
40-
run _binary_exists _binary_exists
41-
assert_failure
40+
run _binary_exists _binary_exists
41+
assert_failure
4242
}
4343

4444
@test "utilities: _binary_exists function negative test" {
45-
run _binary_exists "__addfkds_dfdsjdf_${RANDOM:-}"
46-
assert_failure
45+
run _binary_exists "__addfkds_dfdsjdf_${RANDOM:-}"
46+
assert_failure
4747
}
4848

4949
@test "utilities: _is_function: _completion_exists" {
50-
run _is_function _completion_exists
51-
assert_success
50+
run _is_function _completion_exists
51+
assert_success
5252
}
5353

5454
@test "utilities: _is_function new function" {
55-
local teh_new_func="__addfkds_dfdsjdf_${RANDOM:-}"
56-
run _is_function "${teh_new_func?}"
57-
assert_failure
55+
local teh_new_func="__addfkds_dfdsjdf_${RANDOM:-}"
56+
run _is_function "${teh_new_func?}"
57+
assert_failure
5858

59-
cite "${teh_new_func?}"
60-
run _is_function "${teh_new_func?}"
61-
assert_success
59+
cite "${teh_new_func?}"
60+
run _is_function "${teh_new_func?}"
61+
assert_success
6262
}
6363

6464
@test "utilities: _command_exists new function" {
65-
local teh_new_func="__addfkds_dfdsjdf_${RANDOM:-}"
66-
run _command_exists "${teh_new_func?}"
67-
assert_failure
65+
local teh_new_func="__addfkds_dfdsjdf_${RANDOM:-}"
66+
run _command_exists "${teh_new_func?}"
67+
assert_failure
6868

69-
cite "${teh_new_func?}"
70-
run _command_exists "${teh_new_func?}"
71-
assert_success
69+
cite "${teh_new_func?}"
70+
run _command_exists "${teh_new_func?}"
71+
assert_success
7272
}
7373

7474
@test "_bash-it-component-item-is-enabled() - for a disabled item" {

themes/powerline-naked/powerline-naked.base.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source "${BASH_IT?}/themes/powerline/powerline.base.bash"
66
function __powerline_left_segment {
77
local OLD_IFS="${IFS}"
88
IFS="|"
9-
local params=($1)
9+
local params=("$1")
1010
IFS="${OLD_IFS}"
1111
local separator=""
1212
local pad_before_segment=" "

0 commit comments

Comments
 (0)