this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

small boolean style tweaks

+2 -2
+1 -1
atproto/repo/mst/node.go
··· 186 186 // TODO: should we actually return 0 in this case? 187 187 return 0, fmt.Errorf("can't determine key range of empty MST node") 188 188 } 189 - if markDirty == true { 189 + if markDirty { 190 190 n.Dirty = true 191 191 } 192 192 // check if lower than this entire node
+1 -1
atproto/repo/operation.go
··· 147 147 148 148 set := map[string]bool{} 149 149 for _, op := range list { 150 - if _, ok := set[op.Path]; ok != false { 150 + if _, ok := set[op.Path]; ok { 151 151 return nil, fmt.Errorf("duplicate path in operation list") 152 152 } 153 153 set[op.Path] = true