Skip to content

Commit fa71b52

Browse files
darkwingjasonLaster
authored andcommitted
Fix linting warnings (firefox-devtools#4030)
1 parent 1805081 commit fa71b52

6 files changed

Lines changed: 18 additions & 30 deletions

File tree

src/components/App.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,9 @@ class App extends Component {
249249
render() {
250250
return (
251251
<div className="debugger">
252-
{this.state.horizontal ? (
253-
this.renderHorizontalLayout()
254-
) : (
255-
this.renderVerticalLayout()
256-
)}
252+
{this.state.horizontal
253+
? this.renderHorizontalLayout()
254+
: this.renderVerticalLayout()}
257255
{this.renderSymbolModal()}
258256
</div>
259257
);

src/components/PrimaryPanes/Outline.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ export class Outline extends Component {
7575

7676
return (
7777
<div className={classnames("outline", { hidden: isHidden })}>
78-
{symbolsToDisplay.length > 0 ? (
79-
this.renderFunctions(symbolsToDisplay)
80-
) : (
81-
this.renderPlaceholder()
82-
)}
78+
{symbolsToDisplay.length > 0
79+
? this.renderFunctions(symbolsToDisplay)
80+
: this.renderPlaceholder()}
8381
</div>
8482
);
8583
}

src/components/ProjectSearch/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,9 @@ class ProjectSearch extends Component {
155155

156156
return (
157157
<div className="search-container">
158-
{this.isProjectSearchEnabled() ? (
159-
this.renderTextSearch()
160-
) : (
161-
this.renderSourceSearch()
162-
)}
158+
{this.isProjectSearchEnabled()
159+
? this.renderTextSearch()
160+
: this.renderSourceSearch()}
163161
</div>
164162
);
165163
}

src/components/SecondaryPanes/Scopes.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ class Scopes extends PureComponent {
7171
return (
7272
<div className="pane scopes-list">
7373
<div className="pane-info">
74-
{pauseInfo ? (
75-
L10N.getStr("scopes.notAvailable")
76-
) : (
77-
L10N.getStr("scopes.notPaused")
78-
)}
74+
{pauseInfo
75+
? L10N.getStr("scopes.notAvailable")
76+
: L10N.getStr("scopes.notPaused")}
7977
</div>
8078
</div>
8179
);

src/components/SecondaryPanes/Workers.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ export class Workers extends PureComponent {
1616
return (
1717
<div className="pane">
1818
<div className="pane-info">
19-
{workers && workers.length > 0 ? (
20-
this.renderWorkers(workers)
21-
) : (
22-
this.renderNoWorkersPlaceholder()
23-
)}
19+
{workers && workers.length > 0
20+
? this.renderWorkers(workers)
21+
: this.renderNoWorkersPlaceholder()}
2422
</div>
2523
</div>
2624
);

src/components/SecondaryPanes/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,9 @@ class SecondaryPanes extends Component {
220220
return (
221221
<div className="secondary-panes secondary-panes--sticky-commandbar">
222222
<CommandBar horizontal={this.props.horizontal} />
223-
{this.props.horizontal ? (
224-
this.renderHorizontalLayout()
225-
) : (
226-
this.renderVerticalLayout()
227-
)}
223+
{this.props.horizontal
224+
? this.renderHorizontalLayout()
225+
: this.renderVerticalLayout()}
228226
</div>
229227
);
230228
}

0 commit comments

Comments
 (0)