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 @@ -130,11 +130,7 @@ pub(super) async fn parse_input(
130
130
event : & IssuesEvent ,
131
131
config : Option < & AssignConfig > ,
132
132
) -> Result < Option < AssignInput > , String > {
133
- let config = match config {
134
- Some ( config) => config,
135
- None => return Ok ( None ) ,
136
- } ;
137
- if config. owners . is_empty ( ) || !event. issue . is_pr ( ) {
133
+ if config. is_none ( ) || !event. issue . is_pr ( ) {
138
134
return Ok ( None ) ;
139
135
}
140
136
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