Unverified Commit 31ed3e5f authored by xster's avatar xster Committed by GitHub

Simplify ImageStream(Completer).removeListener (#25994)

parent 1212d4c7
......@@ -167,7 +167,7 @@ class ImageStream extends Diagnosticable {
for (int i = 0; i < _listeners.length; ++i) {
if (_listeners[i].listener == listener) {
_listeners.removeAt(i);
continue;
break;
}
}
}
......@@ -263,7 +263,7 @@ abstract class ImageStreamCompleter extends Diagnosticable {
for (int i = 0; i < _listeners.length; ++i) {
if (_listeners[i].listener == listener) {
_listeners.removeAt(i);
continue;
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment