Skip to content

Commit

Permalink
style: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Guria committed Nov 7, 2016
1 parent 92ff21e commit e8a0a60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cerebral-router/src/index.js
Expand Up @@ -118,7 +118,7 @@ export default function Router (options = {}) {
if (signal) {
signal.signal(payload)
} else {
console.warn(`Cerebral router - signal ${signalName} is not bound to route. Redirect wouldn\'t happen.`) // eslint-disable-line no-console
console.warn(`Cerebral router - signal ${signalName} is not bound to route. Redirect wouldn't happen.`) // eslint-disable-line no-console
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions packages/cerebral-website-tutorial/parts/12/src/index.js
Expand Up @@ -6,8 +6,7 @@ import { Container } from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import { state, set, input } from 'cerebral/operators'
import HttpProvider from 'cerebral-provider-http'
import * as computeds from './computeds/getStars'

import * as computeds from './computeds/getStars'

const controller = Controller(
{
Expand All @@ -26,7 +25,7 @@ const controller = Controller(
cerebralDebuggerStarsCount: 0,
totalStarsCount: 0
},
signals: {
signals: {
buttonClicked: [
...showToast('Button clicked!', 1000)
],
Expand Down Expand Up @@ -90,7 +89,6 @@ const controller = Controller(
]
})


function myAction1 ({input}) {
return {
value: input.value + ' extended by myAction1'
Expand Down
2 changes: 1 addition & 1 deletion packages/function-tree/src/staticTree.js
Expand Up @@ -37,7 +37,7 @@ function traverse (functions, item, isChain) {
funcDetails.outputs = {}
Object.keys(outputs).forEach((key) => {
if (func.outputs && !~func.outputs.indexOf(key)) {
throw new Error(`function-tree - Outputs object doesn\'t match list of possible outputs defined for function.`)
throw new Error(`function-tree - Outputs object doesn't match list of possible outputs defined for function.`)
}
funcDetails.outputs[key] = traverse(functions, outputs[key], true)
})
Expand Down

0 comments on commit e8a0a60

Please sign in to comment.