(ctx context.DnoteCtx, note database.Note)
| 55 | } |
| 56 | |
| 57 | func getContent(ctx context.DnoteCtx, note database.Note) (string, error) { |
| 58 | if contentFlag != "" { |
| 59 | return contentFlag, nil |
| 60 | } |
| 61 | |
| 62 | c, err := waitEditorNoteContent(ctx, note) |
| 63 | if err != nil { |
| 64 | return "", errors.Wrap(err, "getting content from editor") |
| 65 | } |
| 66 | |
| 67 | return c, nil |
| 68 | } |
| 69 | |
| 70 | func changeContent(ctx context.DnoteCtx, tx *database.DB, note database.Note, content string) error { |
| 71 | if note.Body == content { |
no test coverage detected