( number: number, item: Pick<Item, "createdAt" | "labels">, reviewedUpdatedAt: string | undefined, reviewedAt: string | undefined, )
| 3172 | } |
| 3173 | |
| 3174 | function unconfirmedProductDirectionApplyBlockReasonSafe( |
| 3175 | number: number, |
| 3176 | item: Pick<Item, "createdAt" | "labels">, |
| 3177 | reviewedUpdatedAt: string | undefined, |
| 3178 | reviewedAt: string | undefined, |
| 3179 | ): string | null { |
| 3180 | try { |
| 3181 | return unconfirmedProductDirectionApplyBlockReason(number, item, reviewedUpdatedAt, reviewedAt); |
| 3182 | } catch (error) { |
| 3183 | return `product-direction calibration check failed: ${ |
| 3184 | error instanceof Error ? error.message : String(error) |
| 3185 | }`; |
| 3186 | } |
| 3187 | } |
| 3188 | |
| 3189 | export function compactMappedSlice<T>( |
| 3190 | items: readonly T[], |
no test coverage detected