Skip to content

Commit c10cbd4

Browse files
Copilotlpcox
andauthored
fix(rust-guard): remove redundant match arm in author_association_floor_from_str
Agent-Logs-Url: https://github.com/github/gh-aw-mcpg/sessions/39e51062-f61e-45d9-bd0a-5f6e0349f13c Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent 4594ed8 commit c10cbd4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • guards/github-guard/rust-guard/src/labels

guards/github-guard/rust-guard/src/labels/helpers.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,7 @@ pub fn author_association_floor_from_str(
917917
match normalized.as_str() {
918918
"OWNER" | "MEMBER" | "COLLABORATOR" => writer_integrity(scope, ctx),
919919
"CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" => reader_integrity(scope, ctx),
920-
"FIRST_TIMER" | "NONE" => vec![],
921-
_ => vec![],
920+
_ => vec![], // FIRST_TIMER, NONE, or any unrecognised value
922921
}
923922
}
924923

0 commit comments

Comments
 (0)