mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use !! to convert to boolean
This commit is contained in:
1 parent
8515f7e2b5
commit
f4583313d9
1 file changed
+1
-1
@@ -911,7 +911,7 @@ namespace FourSlash {
|
||||
|
||||
function rangeToReferenceEntry(r: Range) {
|
||||
let { isWriteAccess, isDefinition } = (r.marker && r.marker.data) || { isWriteAccess: false, isDefinition: false };
|
||||
isWriteAccess = isWriteAccess || false; isDefinition = isDefinition || false;
|
||||
isWriteAccess = !!isWriteAccess; isDefinition = !!isDefinition;
|
||||
return { fileName: r.fileName, textSpan: { start: r.start, length: r.end - r.start }, isWriteAccess, isDefinition }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user