Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anru committed Mar 3, 2016
1 parent acb0fbd commit e7771a2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/common/icon.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import classNames from 'classnames';
import React, { PropTypes } from 'react';
import React from 'react';
import type { HTMLElement } from '../../types';

function wrapSpinner(svg: HTMLElement, className: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/checkout/checkout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styles from './checkout.css';
import Icon from '../../common/icon';
import Shipping from './shipping';

const Checkout = props => {
const Checkout = () => {
return (
<div styleName="checkout">
<Icon styleName="logo" name="fc-some_brand_logo" />
Expand Down
3 changes: 0 additions & 3 deletions src/components/pages/checkout/shipping.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React from 'react';
import EditableBlock from '../../editable-block';
import cssModules from 'react-css-modules';
import styles from './checkout.css';
import { connect } from 'react-redux';

type ShippingProps = {
isEditing: ?boolean;
Expand All @@ -23,5 +22,3 @@ const Shipping = (props: ShippingProps) => {
};

export default cssModules(Shipping, styles);


4 changes: 1 addition & 3 deletions src/modules/cart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import {createAction, createReducer} from 'redux-act';
import {createReducer} from 'redux-act';

const initialState = {
skus: [],
Expand All @@ -8,5 +8,3 @@ const initialState = {
const reducer = createReducer(void 0, initialState);

export default reducer;


4 changes: 1 addition & 3 deletions src/modules/checkout.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

import {createAction, createReducer} from 'redux-act';
import {createReducer} from 'redux-act';

const initialState = {
};

const reducer = createReducer(void 0, initialState);

export default reducer;


20 changes: 10 additions & 10 deletions tasks/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ function affectsServer(task) {
module.exports = function(gulp) {
let node = null;

function killServer(cb) {
if (node) {
node.once('close', cb);
node.kill();
node = null;
} else {
cb();
}
}

let affectTasksRunning = 0;

function checkForPause(e) {
Expand All @@ -37,16 +47,6 @@ module.exports = function(gulp) {
}
}

function killServer(cb) {
if (node) {
node.once('close', cb);
node.kill();
node = null;
} else {
cb();
}
}

gulp.task('server.stop', killServer);

gulp.task('server.invalidate', function(cb) {
Expand Down

0 comments on commit e7771a2

Please sign in to comment.