diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-07-11 00:38:37 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-07-11 00:38:37 -0400 |
| commit | 0058f56fda4e9e6a70ec7c23e1c141927715f9c1 (patch) | |
| tree | c7b53e079614defb95de85e1438e2c9505c8bf17 /src/client/util/LinkManager.ts | |
| parent | b1b69f8a4f9e34f0c8e667ec95f9fe16ebc8b2e4 (diff) | |
trying to make everything work the same way
Diffstat (limited to 'src/client/util/LinkManager.ts')
| -rw-r--r-- | src/client/util/LinkManager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index 944bc532f..d6ea6013b 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -234,9 +234,9 @@ export class LinkManager { //TODO This should also await the return value of the anchor so we don't filter out promises public getOppositeAnchor(linkDoc: Doc, anchor: Doc): Doc { if (Doc.AreProtosEqual(anchor, Cast(linkDoc.anchor1, Doc, null))) { - return Cast(linkDoc.anchor2, Doc, null)!; + return Cast(linkDoc.anchor2, Doc, null); } else { - return Cast(linkDoc.anchor1, Doc, null)!; + return Cast(linkDoc.anchor1, Doc, null); } } }
\ No newline at end of file |
