Skip to content

Commit 331aaae

Browse files
committed
Merge branch 'main' of github.com:matryer/xbar into main
2 parents 9d38354 + 6154485 commit 331aaae

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

pkg/plugins/action.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (i *Item) Action() ActionFunc {
4242
if i.Params.Shell != "" {
4343
actions = append(actions, actionShell(debugf, i, i.Params.Shell, i.Params.ShellParams))
4444
}
45-
if i.Params.Refresh == true {
45+
if i.Params.Refresh {
4646
shouldDelayBeforeRefresh := false
4747
if len(actions) > 0 {
4848
// there are actions other than refresh, so let's introduce a
@@ -157,6 +157,5 @@ func actionRefresh(debugf DebugFunc, refreshFunc func(ctx context.Context)) Acti
157157
return func(ctx context.Context) {
158158
debugf("action refresh")
159159
refreshFunc(ctx)
160-
return
161160
}
162161
}

pkg/plugins/install_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ func TestGetInstalledPluginName(t *testing.T) {
176176
// is.True(err != nil)
177177
// })
178178
// }
179-
180-
const simplePlugin = `#!/bin/bash
181-
echo "Hello, xbar."
182-
`
179+
// const simplePlugin = `#!/bin/bash
180+
// echo "Hello, xbar."
181+
// `
File renamed without changes.
File renamed without changes.

pkg/plugins/parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestParseParams(t *testing.T) {
3939
s, params, err = parseParams(`no params`)
4040
is.NoErr(err)
4141
is.Equal(s, "no params")
42-
is.Equal(params.Terminal, false) // Terminal
42+
is.Equal(params.Terminal, "false") // Terminal
4343
is.Equal(params.Refresh, false) // Refresh
4444
is.Equal(params.Dropdown, true) // Dropdown
4545
is.Equal(params.Length, 0) // Length

0 commit comments

Comments
 (0)