File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ export default class App extends Component {
54
54
} ) ;
55
55
let content = null ;
56
56
if ( _ . isArray ( this . state . content ) ) {
57
- content = this . state . content . map ( file => {
58
- return < DiffView key = { file . filename } source = { file . patch } /> ;
59
- } ) ;
57
+ content = this . state . content . map ( file =>
58
+ < DiffView key = { file . filename } source = { file . patch } />
59
+ ) ;
60
60
} else {
61
61
content = < DiffView source = { this . state . content } /> ;
62
62
}
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import Change from './change';
3
3
import style from './style' ;
4
4
5
5
export default function Chunk ( props ) {
6
- const changes = props . changes . map ( ( change , i ) => {
7
- return < Change key = { i } { ...change } lang = { props . lang } /> ;
8
- } ) ;
6
+ const changes = props . changes . map ( ( change , i ) =>
7
+ < Change key = { i } { ...change } lang = { props . lang } />
8
+ ) ;
9
9
return (
10
10
< tbody >
11
11
< tr className = { style . chunk } >
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ function Part(props) {
12
12
const ext = extname ( fileName ) ;
13
13
const langs = languages ( ext ) ;
14
14
15
- const items = chunks . map ( ( chunk , i ) => {
16
- return < Chunk key = { i } { ...chunk } lang = { langs [ 0 ] } /> ;
17
- } ) ;
15
+ const items = chunks . map ( ( chunk , i ) =>
16
+ < Chunk key = { i } { ...chunk } lang = { langs [ 0 ] } />
17
+ ) ;
18
18
19
19
return (
20
20
< article className = { style . diff } >
You can’t perform that action at this time.
0 commit comments