Skip to content

Commit 1b76301

Browse files
authored
chore: remove unneeded double negation (#484)
1 parent 5a6d4ee commit 1b76301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/checker/checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12199,7 +12199,7 @@ func (c *Checker) hasEmptyObjectIntersection(t *Type) bool {
1219912199
}
1220012200

1220112201
func (c *Checker) isExactOptionalPropertyMismatch(source *Type, target *Type) bool {
12202-
return source != nil && target != nil && c.maybeTypeOfKind(source, TypeFlagsUndefined) && !!c.containsMissingType(target)
12202+
return source != nil && target != nil && c.maybeTypeOfKind(source, TypeFlagsUndefined) && c.containsMissingType(target)
1220312203
}
1220412204

1220512205
func (c *Checker) checkReferenceExpression(expr *ast.Node, invalidReferenceMessage *diagnostics.Message, invalidOptionalChainMessage *diagnostics.Message) bool {

0 commit comments

Comments
 (0)