From 90b4226cc067f15105ae09c81a2a8b57f47a457f Mon Sep 17 00:00:00 2001 From: Marshall Roch Date: Fri, 3 Jun 2022 14:02:35 -0700 Subject: [PATCH] fix lints in OperationExecutor Reviewed By: rbalicki2 Differential Revision: D36905286 fbshipit-source-id: 5b5e70f03cb1d57fe488911ea668eb743f327f25 --- packages/relay-runtime/store/OperationExecutor.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/relay-runtime/store/OperationExecutor.js b/packages/relay-runtime/store/OperationExecutor.js index 75e03fd366840..64c85359faf97 100644 --- a/packages/relay-runtime/store/OperationExecutor.js +++ b/packages/relay-runtime/store/OperationExecutor.js @@ -1475,11 +1475,8 @@ class Executor { // Determine the __id of the new item: this must equal the value that would // be assigned had the item not been streamed const itemID = - // https://github.com/prettier/prettier/issues/6403 - // prettier-ignore - (this._getDataID(data, typeName) ?? - // $FlowFixMe[sketchy-null-string] - (prevIDs && prevIDs[itemIndex])) || // Reuse previously generated client IDs + this._getDataID(data, typeName) ?? + prevIDs?.[itemIndex] ?? // Reuse previously generated client IDs generateClientID(parentID, storageKey, itemIndex); invariant( typeof itemID === 'string',