Add missing returns for the deprecated methods
This commit is contained in:
parent
f06b21dfee
commit
1199b053fe
@ -60,7 +60,7 @@ class Contribution extends Record {
|
|||||||
|
|
||||||
addContribution () {
|
addContribution () {
|
||||||
deprecate('The method: `addContribution` is deprecated use `add` instead');
|
deprecate('The method: `addContribution` is deprecated use `add` instead');
|
||||||
this.add(...arguments);
|
return this.add(...arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class Proposal extends Record {
|
|||||||
|
|
||||||
addProposal () {
|
addProposal () {
|
||||||
deprecate('The method: `addProposal` is deprecated use `add` instead');
|
deprecate('The method: `addProposal` is deprecated use `add` instead');
|
||||||
this.add(...arguments);
|
return this.add(...arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user