Skip to content

Commit b8ddd28

Browse files
committed
Remove unused arg
1 parent 51f2c0f commit b8ddd28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/Broadcast.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
broadcasts as broadcastsType
55
} from './PropTypes'
66

7-
const createBroadcast = (channel, initialValue) => {
7+
const createBroadcast = (initialValue) => {
88
let listeners = []
99
let currentValue = initialValue
1010

@@ -49,8 +49,8 @@ class Broadcast extends React.Component {
4949
}
5050

5151
getBroadcastsContext() {
52-
const { broadcasts } = this.context
5352
const { channel } = this.props
53+
const { broadcasts } = this.context
5454

5555
return {
5656
...broadcasts,
@@ -65,7 +65,7 @@ class Broadcast extends React.Component {
6565
}
6666

6767
componentWillMount() {
68-
this.broadcast = createBroadcast(this.props.channel, this.props.value)
68+
this.broadcast = createBroadcast(this.props.value)
6969
}
7070

7171
componentWillReceiveProps(nextProps) {

0 commit comments

Comments
 (0)