Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit364c8bf

Browse files
committed
fix lint error; move os.Executable call outside of the anonymous
goroutineSigned-off-by: Callum Styan <callumstyan@gmail.com>
1 parentd3d5e1e commit364c8bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎cli/logout_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ func TestLogout(t *testing.T) {
9090
logout.Stdin=pty.Input()
9191
logout.Stdout=pty.Output()
9292

93-
gofunc() {
94-
executable,err:=os.Executable()
95-
require.NoError(t,err)
96-
require.NotEqual(t,"",executable)
93+
executable,err:=os.Executable()
94+
require.NoError(t,err)
95+
require.NotEqual(t,"",executable)
9796

97+
gofunc() {
9898
deferclose(logoutChan)
9999
err=logout.Run()
100100
require.Contains(t,err.Error(),fmt.Sprintf("Try logging in using '%s login <url>'.",executable))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp