Skip to content

Commit

Permalink
Add comment to digParse function selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Aug 9, 2024
1 parent 7ef1823 commit 5cdcaf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/oj/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ func digParse(r io.Reader) error {
if color {
annotateColor = ojg.Gray
}
// Pick a function that satisfies omit, annotate, and senOut
// values. Determining the function before the actual calling means few
// conditional paths during the repeated calls later.
if omit {
if annotate {
if senOut {
Expand Down

0 comments on commit 5cdcaf8

Please sign in to comment.