mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
fix: 删除多余的一层else
This commit is contained in:
parent
1a4f622d92
commit
a671890001
@ -165,9 +165,8 @@ class RangeIterator {
|
||||
if (value < this.stop) {
|
||||
this.value++;
|
||||
return {done: false, value: value};
|
||||
} else {
|
||||
return {done: true, value: undefined};
|
||||
}
|
||||
return {done: true, value: undefined};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user