mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
style: fix lint findings from the review fixes
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
3 files changed
+8
-5
No files matched your search
@@ -333,7 +333,7 @@ func TestBodyEditorTypesInlineWithoutAnEditor(t *testing.T) {
|
||||
require.Equal(t, []string{terminal.BodyTitle + " ## Steps"}, prompt.texts)
|
||||
// The typed body is kept like an editor draft: reported when the command fails, removed when it succeeds.
|
||||
requireDraft(t, draft.Path, true)
|
||||
var failed error = errors.New("create failed")
|
||||
failed := errors.New("create failed")
|
||||
finishDraft(&draft, &failed)
|
||||
require.ErrorContains(t, failed, "draft saved at "+draft.Path)
|
||||
requireDraft(t, draft.Path, true)
|
||||
|
||||
Reference in new issue
Block a user