Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lw committed Aug 16, 2019
1 parent 3363590 commit e734cf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/item.d
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ Item parseItem(const string itemPath)
MarkdownFlags.backtickCodeBlocks);

// TODO: JSONValue does not seem to have a 'boolean' property on some
// systems, so I'll go with C-style "integers are booleans"
// notation for now.
// systems, so integers are used in their stead (think C).
i.draft = ("draft" in j) ? j["draft"].integer == 1 : false;
i.hidden = ("hidden" in j) ? j["hidden"].integer == 1 : false;

Expand Down

0 comments on commit e734cf1

Please sign in to comment.