aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/filelist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/filelist.rs')
-rw-r--r--components/script/dom/filelist.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/filelist.rs b/components/script/dom/filelist.rs
index 4f8e976f5f7..8adbe1ed467 100644
--- a/components/script/dom/filelist.rs
+++ b/components/script/dom/filelist.rs
@@ -55,9 +55,7 @@ impl FileListMethods for FileList {
}
// check-tidy: no specs after this line
- fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Root<File>> {
- let item = self.Item(index);
- *found = item.is_some();
- item
+ fn IndexedGetter(&self, index: u32) -> Option<Root<File>> {
+ self.Item(index)
}
}