Skip to content

Commit

Permalink
Fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hidden4003 committed Sep 19, 2016
1 parent 129eaf9 commit 614a302
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/Dialogs/ImportFolder/EditTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class EditTab extends React.Component {
let buttons;

if (!form.ImportFolderID) {
let folders = [];
const folders = [];
let i = 0;
forEach(items, (item) => {
i++;
Expand Down
2 changes: 1 addition & 1 deletion components/Panels/TimeUpdated.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TimeUpdated extends React.Component {

render() {
const { timestamp, className, isFetching } = this.props;
let dateString = (timestamp) ? moment(timestamp, 'x').format('YYYY-MM-DD HH:mm:ss') : '--';
const dateString = (timestamp) ? moment(timestamp, 'x').format('YYYY-MM-DD HH:mm:ss') : '--';
return (
<span className={className}>
{isFetching ? <i className="fa fa-refresh fa-spin" /> : null}
Expand Down
4 changes: 2 additions & 2 deletions pages/import/ImportFolderSeries.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ImportFolderSeries extends React.Component {

render() {
const { items, isFetching, lastUpdated, importFolders, selectedFolder } = this.props;
let series = [];
let folders = [];
const series = [];
const folders = [];
let i = 0;
forEach(items, (item) => {
i++;
Expand Down
2 changes: 1 addition & 1 deletion pages/main/Commands.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Commands extends React.Component {

render() {
const { items, isFetching, lastUpdated, className } = this.props;
let commands = [];
const commands = [];
forEach(items, (item, key) => {
commands.push(
<CommandsItem
Expand Down
2 changes: 1 addition & 1 deletion pages/main/ImportFolders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ImportFolders extends React.Component {
render() {
const { items, isFetching, lastUpdated, className, description, importModal,
importFolders } = this.props;
let folders = [];
const folders = [];
let i = 0;
forEach(items, (item) => {
i++;
Expand Down
2 changes: 1 addition & 1 deletion pages/main/News.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class News extends React.Component {

render() {
const { items, isFetching, lastUpdated, className } = this.props;
let news = [];
const news = [];
let i = 0;
forEach(items, (item) => {
i++;
Expand Down
4 changes: 2 additions & 2 deletions pages/main/QuickActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class QuickActions extends React.Component {
const { lastUpdated } = this.props;
const shouldComeFromStore = ['Run Import', 'Update Images', 'Sync Votes',
'Remove Missing Files', 'Update All Stats', 'Update All TvDB Info'];
let actions = [];
const actions = [];

for (let [index, item] of shouldComeFromStore.entries()) {
for (const [index, item] of shouldComeFromStore.entries()) {
actions.push(<QuickActionsItem key={index} index={index + 1} name={item} />);
}

Expand Down
2 changes: 1 addition & 1 deletion pages/main/RecentFiles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RecentFiles extends React.Component {

render() {
const { items, isFetching, lastUpdated } = this.props;
let files = [];
const files = [];
let i = 0;
forEach(items, (item) => {
i++;
Expand Down

0 comments on commit 614a302

Please sign in to comment.