Skip to content

Commit 868d0ab

Browse files
committed
lint rust and ts
1 parent 92bdca2 commit 868d0ab

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crates/wysiwyg/src/dom/parser/panode_container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ fn test_contains_style() {
4848
};
4949
assert!(node.contains_style("font-weight", "bold"));
5050
assert!(!node.contains_style("font-weight", "normal"));
51-
}
51+
}

platforms/web/lib/composer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ export function processInput(
6969
const clipboardData = event.clipboardData;
7070
const htmlData = clipboardData?.getData('text/html');
7171
const plainData = clipboardData?.getData('text/plain') ?? '';
72-
72+
7373
if (htmlData && htmlData !== plainData) {
7474
const htmlSource = clipboardData?.types.includes(
7575
'application/x-vnd.google-docs-document-slice-clip+wrapped',
76-
) ? HtmlSource.GoogleDoc : HtmlSource.UnknownExternal;
76+
)
77+
? HtmlSource.GoogleDoc
78+
: HtmlSource.UnknownExternal;
7779
return action(
7880
composerModel.replace_html(htmlData, htmlSource),
7981
'replace_html_paste',

0 commit comments

Comments
 (0)