Skip to content

Commit 1f2bcff

Browse files
bpas247taion
andauthored
refactor(docs-alert): remove usage of ternary
Co-authored-by: Jimmy Jia <tesrin@gmail.com>
1 parent 235946d commit 1f2bcff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/src/components/MasterDocsAlert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function MasterDocsAlert() {
2222
deploymentDetails = `the ${netlify.branch} branch`;
2323
}
2424
}
25-
return netlify ? (
25+
return netlify && (
2626
<Container fluid>
2727
<Row>
2828
<Alert variant="warning" className="w-100">
@@ -34,5 +34,5 @@ export default function MasterDocsAlert() {
3434
</Alert>
3535
</Row>
3636
</Container>
37-
) : null;
37+
);
3838
}

0 commit comments

Comments
 (0)