Delete unnecessary setter
This commit is contained in:
parent
44c1cb37f5
commit
a3fcd5ab67
|
@ -8,10 +8,6 @@ class Translate {
|
||||||
this.history = [];
|
this.history = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
set sourceWord(word) {
|
|
||||||
this.sourceWord = word;
|
|
||||||
}
|
|
||||||
|
|
||||||
getHistory(sourceWord, sourceLang, targetLang) {
|
getHistory(sourceWord, sourceLang, targetLang) {
|
||||||
const history = this.history.find(
|
const history = this.history.find(
|
||||||
history =>
|
history =>
|
||||||
|
|
Loading…
Reference in a new issue