File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -129,11 +129,7 @@ pub(super) async fn parse_input(
129
129
event : & IssuesEvent ,
130
130
config : Option < & AssignConfig > ,
131
131
) -> Result < Option < AssignInput > , String > {
132
- let config = match config {
133
- Some ( config) => config,
134
- None => return Ok ( None ) ,
135
- } ;
136
- if config. owners . is_empty ( ) || !event. issue . is_pr ( ) {
132
+ if config. is_none ( ) || !event. issue . is_pr ( ) {
137
133
return Ok ( None ) ;
138
134
}
139
135
Original file line number Diff line number Diff line change @@ -144,3 +144,10 @@ fn basic_gitignore_pattern() {
144
144
let diff = make_fake_diff ( & [ ( "src/librustdoc/html/static/js/settings.js" , 10 , 1 ) ] ) ;
145
145
test_from_diff ( & diff, config, & [ "javascript-reviewers" ] ) ;
146
146
}
147
+
148
+ #[ test]
149
+ fn empty_owners_table ( ) {
150
+ let config = toml:: toml!( [ owners] ) ;
151
+ let diff = make_fake_diff ( & [ ( "src.js" , 10 , 1 ) ] ) ;
152
+ test_from_diff ( & diff, config, & [ ] ) ;
153
+ }
You can’t perform that action at this time.
0 commit comments