( row: OAuthClientGcRow, referencingConnectionCount: number, )
| 147 | * row's `(owner, slug)`. |
| 148 | */ |
| 149 | export const classifyOAuthClientGc = ( |
| 150 | row: OAuthClientGcRow, |
| 151 | referencingConnectionCount: number, |
| 152 | ): OAuthClientGcDecision => { |
| 153 | if (!isDcrClassifiedRow(row)) return { action: "keep", reason: "not-dcr" }; |
| 154 | if (referencingConnectionCount > 0) return { action: "keep", reason: "referenced" }; |
| 155 | return { action: "delete", reason: "dcr-orphaned" }; |
| 156 | }; |
no test coverage detected