Avoid === true on a boolean
This commit is contained in:
Родитель
18ddb3a297
Коммит
38cbb95ecc
|
@ -24,7 +24,7 @@ export type CodePathsProps = {
|
|||
severity: ResultSeverity;
|
||||
};
|
||||
|
||||
const filterIsOpenTelemetry = (v: boolean) => v === true;
|
||||
const filterIsOpenTelemetry = (v: boolean) => v;
|
||||
|
||||
export const CodePaths = ({
|
||||
codeFlows,
|
||||
|
|
|
@ -101,7 +101,7 @@ type RawResultsTableProps = {
|
|||
sourceLocationPrefix: string;
|
||||
};
|
||||
|
||||
const filterTableExpandedTelemetry = (v: boolean) => v === true;
|
||||
const filterTableExpandedTelemetry = (v: boolean) => v;
|
||||
|
||||
const RawResultsTable = ({
|
||||
schema,
|
||||
|
|
|
@ -158,7 +158,7 @@ const isExpandableContentLoaded = (
|
|||
return resultsLoaded;
|
||||
};
|
||||
|
||||
const filterRepoRowExpandedTelemetry = (v: boolean) => v === true;
|
||||
const filterRepoRowExpandedTelemetry = (v: boolean) => v;
|
||||
|
||||
export const RepoRow = ({
|
||||
repository,
|
||||
|
|
Загрузка…
Ссылка в новой задаче