MCPcopy Index your code
hub / github.com/dnote/dnote / checkNoteInList

Function checkNoteInList

pkg/cli/cmd/sync/sync.go:519–529  ·  view source on GitHub ↗

checkNoteInList checks if the given syncList contains the note with the given uuid

(uuid string, list *syncList)

Source from the content-addressed store, hash-verified

517
518// checkNoteInList checks if the given syncList contains the note with the given uuid
519func checkNoteInList(uuid string, list *syncList) bool {
520 if _, ok := list.Notes[uuid]; ok {
521 return true
522 }
523
524 if _, ok := list.ExpungedNotes[uuid]; ok {
525 return true
526 }
527
528 return false
529}
530
531// checkBookInList checks if the given syncList contains the book with the given uuid
532func checkBookInList(uuid string, list *syncList) bool {

Callers 2

cleanLocalNotesFunction · 0.85
TestCheckNoteInListFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCheckNoteInListFunction · 0.68