Skip to content

Commit

Permalink
locking of Clean as TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
orpheuslummis committed Feb 17, 2022
1 parent 00b5fcc commit f0fc936
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions document/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,7 @@ func (doc *Document) ToMap() (map[string]interface{}, error) {
}

func (doc *Document) Clean() {
doc.mu.Lock()
defer doc.mu.Unlock()
// TODO
for _, v := range doc.Fields() {
val, _ := doc.GetValueWithField(v)
if val.IsDirty() {
Expand Down

0 comments on commit f0fc936

Please sign in to comment.