Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Jun 7, 2022
1 parent 1ea51af commit 1810bd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/react-dom/src/server/ReactDOMServerFormatConfig.js
Expand Up @@ -1128,7 +1128,6 @@ function pushStartTitle(
target.push(startChunkForTag('title'));

let children = null;
let innerHTML = null;
for (const propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
const propValue = props[propKey];
Expand All @@ -1153,7 +1152,7 @@ function pushStartTitle(
target.push(endOfStartTag);

if (__DEV__) {
let child =
const child =
Array.isArray(children) && children.length < 2
? children[0] || null
: children;
Expand Down
3 changes: 2 additions & 1 deletion scripts/error-codes/codes.json
Expand Up @@ -418,5 +418,6 @@
"430": "ServerContext can only have a value prop and children. Found: %s",
"431": "React elements are not allowed in ServerContext",
"432": "This Suspense boundary was aborted by the server.",
"433": "useId can only be used while React is rendering"
"433": "useId can only be used while React is rendering",
"434": "`dangerouslySetInnerHTML` does not make sense on <title>."
}

0 comments on commit 1810bd5

Please sign in to comment.