From 93f2b6a83302ceef5c98be4fb696840608ad3bc3 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 23 Sep 2016 12:29:54 -0400 Subject: Updating ESLint (#4085) --- .../components/post_view/components/post_attachment.jsx | 15 ++++++--------- .../post_view/components/post_attachment_list.jsx | 2 +- webapp/components/post_view/components/post_body.jsx | 2 +- .../post_view/components/post_body_additional_content.jsx | 2 +- webapp/components/post_view/post_view_cache.jsx | 2 +- 5 files changed, 10 insertions(+), 13 deletions(-) (limited to 'webapp/components/post_view') diff --git a/webapp/components/post_view/components/post_attachment.jsx b/webapp/components/post_view/components/post_attachment.jsx index 4442b735a..57335b94a 100644 --- a/webapp/components/post_view/components/post_attachment.jsx +++ b/webapp/components/post_view/components/post_attachment.jsx @@ -87,7 +87,7 @@ class PostAttachment extends React.Component { return ''; } - let fieldTables = []; + const fieldTables = []; let headerCols = []; let bodyCols = []; @@ -104,7 +104,7 @@ class PostAttachment extends React.Component { > - {headerCols} + {headerCols} @@ -134,8 +134,7 @@ class PostAttachment extends React.Component { className='attachment-field' key={'attachment__field-' + i + '__' + nrTables} dangerouslySetInnerHTML={{__html: TextFormatting.formatText(field.value || '')}} - > - + /> ); rowPos += 1; lastWasLong = !(field.short === true); @@ -175,8 +174,7 @@ class PostAttachment extends React.Component {
-
+ /> ); } @@ -250,8 +248,7 @@ class PostAttachment extends React.Component {
-
+ /> ); } @@ -307,7 +304,7 @@ class PostAttachment extends React.Component { {fields} {thumb} -
+
diff --git a/webapp/components/post_view/components/post_attachment_list.jsx b/webapp/components/post_view/components/post_attachment_list.jsx index 7da9efbee..7e9d7980d 100644 --- a/webapp/components/post_view/components/post_attachment_list.jsx +++ b/webapp/components/post_view/components/post_attachment_list.jsx @@ -7,7 +7,7 @@ import React from 'react'; export default class PostAttachmentList extends React.Component { render() { - let content = []; + const content = []; this.props.attachments.forEach((attachment, i) => { content.push(