Skip to content

Commit

Permalink
chore(lint): lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeKittens committed Dec 5, 2015
1 parent e977551 commit f6bad5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class Workflow {
if (typeof sourceName !== 'string') {
sourceName = registerTmpNode('source', sourceName);
}
let prevNode = gustav.makeNode(<string>sourceName, this.ggraph, SourceConfig)
let prevNode = gustav.makeNode(<string>sourceName, this.ggraph, SourceConfig);
return new WorkflowChain(this, prevNode);
}
/**
Expand Down Expand Up @@ -221,7 +221,7 @@ class WorkflowChain {
this.addNodeToGraph(name, 'sink', config);
return new WorkflowChain(this.workflow, this.prevNode);
}
clone() {
clone(): IWorkflowChain {
return new WorkflowChain(this.workflow, this.prevNode);
}

Expand All @@ -232,7 +232,7 @@ class WorkflowChain {
* @config {Configuration for the node}
* @replaceOld {Should we overwrite prevNode?}
*/
private addNodeToGraph(name, type: string, config?, replaceOld?) {
private addNodeToGraph(name, type: string, config?, replaceOld?): void {
if (typeof name !== 'string') {
name = this.registerTmpNode(type, name);
}
Expand Down
1 change: 0 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import {GustavGraph} from './GustavGraph';
import {Workflow} from './Workflow';
import {Observable} from '@reactivex/rxjs';

interface INodeFactory {
(...config: any[]): symbol;
Expand Down
9 changes: 4 additions & 5 deletions test/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import {addCommonNodes} from './testNodes';

addCommonNodes(gustav);
describe(`Workflow's .fromJSON()`, () => {
let wfFactories = [];

let noop = (): void => {};
let simpleWf = (done): INodeDef[] => [{
id: 1,
name: 'intSource'
Expand Down Expand Up @@ -62,7 +61,7 @@ describe(`Workflow's .fromJSON()`, () => {
id: 3,
name: 'fromIntSource',
dataFrom: 1,
config: () => {}
config: noop
}, {
id: 4,
name: 'fromIntTransformer',
Expand Down Expand Up @@ -119,12 +118,12 @@ describe(`Workflow's .fromJSON()`, () => {
id: 4,
name: 'fromIntTransformer',
dataFrom: 2,
config: () => {}
config: noop
}, {
id: 3,
name: 'fromIntSource',
dataFrom: 1,
config: () => {}
config: done
}, {
id: 1,
name: 'intSource'
Expand Down

0 comments on commit f6bad5a

Please sign in to comment.