Skip to content

Commit 78dd034

Browse files
committed
Clean up assertions
1 parent f52161d commit 78dd034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/prism-react-renderer/src/components/useGetLineProps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const useGetLineProps = (themeDictionary?: ThemeDict) =>
1111
className: clsx("token-line", className),
1212
}
1313

14-
if (themeDictionary != null) output.style = themeDictionary.plain
15-
if (style != null) output.style = { ...(output.style || {}), ...style }
14+
if (themeDictionary) output.style = themeDictionary.plain
15+
if (style) output.style = { ...(output.style || {}), ...style }
1616

1717
return output
1818
},

0 commit comments

Comments
 (0)