mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,15 +1,15 @@
|
||||
import React from "react"
|
||||
import React from "react";
|
||||
|
||||
export function displayBooleans(shouldShow: boolean, from: React.ReactNode): React.ReactNode {
|
||||
if (shouldShow) {
|
||||
if (typeof from === "boolean") {
|
||||
return from.toString()
|
||||
return from.toString();
|
||||
}
|
||||
|
||||
if (Array.isArray(from)) {
|
||||
return from.map(node => displayBooleans(shouldShow, node))
|
||||
return from.map(node => displayBooleans(shouldShow, node));
|
||||
}
|
||||
}
|
||||
|
||||
return from
|
||||
return from;
|
||||
}
|
||||
Reference in new issue
Block a user