Skip to content

Commit

Permalink
FIX linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 11, 2017
1 parent 0593f37 commit 663b8ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/addon-links/src/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import addons from '@kadira/storybook-addons';
import { EVENT_ID } from './';

export function linkTo(kind, story) {
return function (...args) {
return function(...args) {
const resolvedKind = typeof kind === 'function' ? kind(...args) : kind;
const resolvedStory = typeof story === 'function' ? story(...args) : story;

const channel = addons.getChannel();
channel.emit(EVENT_ID, {kind: resolvedKind, story: resolvedStory});
channel.emit(EVENT_ID, { kind: resolvedKind, story: resolvedStory });
};
}

0 comments on commit 663b8ca

Please sign in to comment.