Skip to content

Operator precedence bug in configureLastModifiedHeader #241

@thehabes

Description

@thehabes

Operator precedence bug in configureLastModifiedHeader — isOverwritten is never used.

The ! (logical NOT) operator has higher precedence than ===. So !obj.__rerum.isOverwritten === "" evaluates as (!obj.__rerum.isOverwritten) === "", which compares a boolean to a string — this is always false. As a result, the isOverwritten date is never used and the function always falls through to createdAt.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions