| Index: tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate b/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| index bc55c610720d7e83977e14ac2b16e82f86619159..6cf94ba98327c7ed27c374ac65cf9976c0575a72 100644
|
| --- a/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| @@ -42,12 +42,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| @DomName('IDBObjectStore.count')
|
| Future<int> count([key_OR_range]) {
|
| try {
|
| - var request;
|
| - if (key_OR_range != null) {
|
| - request = _count(key_OR_range);
|
| - } else {
|
| - request = _count();
|
| - }
|
| + var request = _count(key_OR_range);
|
| return _completeRequest(request);
|
| } catch (e, stacktrace) {
|
| return new Future.error(e, stacktrace);
|
|
|