Skip to content

Commit e41c9b4

Browse files
authored
Eliminated dead code
* Updated readme * Eliminated dead code within renderwrap.ts
1 parent 53d3fbb commit e41c9b4

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
**The most powerful and flexible grid system for _React_**
1010

11-
_React Rasta_ is a 12 column grid system built on top of `styled-components` which works underneath
12-
with the _CSS flexbox_ layout.
11+
_React Rasta_ is a 12 column grid system built on top of the _CSS flexbox_ layout and `styled-components`.
1312

1413
## Getting Started
1514

src/row/renderWrap.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ import RowWrap from "./RowWrap";
22
import { css, equals } from "../utils";
33

44
function renderWrap(wrap?: RowWrap): string {
5-
if (wrap == null) {
5+
if (wrap == null || !equals(wrap, ["nowrap", "wrap", "wrap-reverse"])) {
66
return renderWrap("wrap");
7-
}
8-
9-
if (equals(wrap, ["nowrap", "wrap", "wrap-reverse"])) {
7+
} else {
108
return css`
119
flex-wrap: ${wrap};
1210
`;
1311
}
14-
15-
return "";
1612
}
1713

1814
export default renderWrap;

0 commit comments

Comments
 (0)