Skip to content

Commit 9520ce0

Browse files
committed
STAC-0: remove a couple more nolint statements
1 parent 7aad0c8 commit 9520ce0

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

cmd/dashboard/dashboard_edit_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ func TestEditDashboardInvalidJson(t *testing.T) {
223223
mockEditor := &MockEditor{
224224
Content: []byte(`{"invalid": json syntax}`),
225225
}
226-
//nolint:staticcheck
227-
cli.Deps.Editor = mockEditor
226+
cli.Editor = mockEditor
228227

229228
_, err := di.ExecuteCommandWithContext(&cli.Deps, cmd, "--id", "1234")
230229

@@ -243,8 +242,7 @@ func TestEditDashboardEditorError(t *testing.T) {
243242
mockEditor := &MockEditor{
244243
Error: errors.New("editor failed to open"),
245244
}
246-
//nolint:staticcheck
247-
cli.Deps.Editor = mockEditor
245+
cli.Editor = mockEditor
248246

249247
_, err := di.ExecuteCommandWithContext(&cli.Deps, cmd, "--id", "1234")
250248

758 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)