Browse Source

Default to state=open

Santiago Pastorino 4 năm trước cách đây
mục cha
commit
a4fd429bf4
1 tập tin đã thay đổi với 0 bổ sung10 xóa
  1. 0 10
      src/github.rs

+ 0 - 10
src/github.rs

@@ -669,16 +669,6 @@ impl Repository {
                 "labels={}",
                 "labels={}",
                 include_labels.join(",")
                 include_labels.join(",")
             )))
             )))
-            // if no state is defined, assume `state=all` so we don't fall back to the
-            // `state=open` default of github.
-            .chain(
-                if filters.iter().any(|&(key, _)| key == "state") {
-                    None
-                } else {
-                    Some("state=all".to_owned())
-                }
-                .into_iter(),
-            )
             .chain(std::iter::once("filter=all".to_owned()))
             .chain(std::iter::once("filter=all".to_owned()))
             .collect::<Vec<_>>()
             .collect::<Vec<_>>()
             .join("&");
             .join("&");