Skip to content

Commit 74448d9

Browse files
Alejandro Celayaacelaya
authored andcommitted
Reformat code
1 parent 5e09dd3 commit 74448d9

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/shared/messaging/port-rpc.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ export type HandlerMap = Record<string, (...args: any) => void>;
118118
* @template Calls - Object type describing the calls made by this port,
119119
* using {@link PortRPC.prototype.call}.
120120
*/
121-
export class PortRPC<Handlers extends HandlerMap, Calls extends CallMap>
122-
implements Destroyable
123-
{
121+
export class PortRPC<
122+
Handlers extends HandlerMap,
123+
Calls extends CallMap,
124+
> implements Destroyable {
124125
/**
125126
* Map of sequence number to response callback, for RPC calls sent from
126127
* this instance.

src/sidebar/components/SharePanel/ImportAnnotations.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ function ImportAnnotations({
115115
// (`importAnnotations` will be falsey if this is not the case).
116116
const importReady = Boolean(
117117
store.focusedGroup() &&
118-
store.defaultContentFrame() &&
119-
store.hasFetchedAnnotations() &&
120-
!store.isFetchingAnnotations() &&
121-
importAnnotations,
118+
store.defaultContentFrame() &&
119+
store.hasFetchedAnnotations() &&
120+
!store.isFetchingAnnotations() &&
121+
importAnnotations,
122122
);
123123

124124
// True if we're validating a JSON file after it has been selected.

src/sidebar/helpers/annotation-segment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export function annotationMatchesSegment(
3030
// nb. The URL comparison here assumes that both URLs are either absolute
3131
// or relative to the same root.
3232
(segment.url && selector.url === segment.url) ||
33-
(segment.cfi &&
34-
selector.cfi &&
35-
stripCFIAssertions(selector.cfi) === stripCFIAssertions(segment.cfi)),
33+
(segment.cfi &&
34+
selector.cfi &&
35+
stripCFIAssertions(selector.cfi) === stripCFIAssertions(segment.cfi)),
3636
);
3737
}
3838

0 commit comments

Comments
 (0)