mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: unnecessary type casting
This commit is contained in:
@@ -232,8 +232,7 @@ export class BlockService extends BaseService<
|
||||
} else if (
|
||||
typeof pattern === 'object' &&
|
||||
'label' in pattern &&
|
||||
text.trim().toLowerCase() ===
|
||||
(pattern.label as unknown as string).toLowerCase()
|
||||
text.trim().toLowerCase() === pattern.label.toLowerCase()
|
||||
) {
|
||||
// Payload (quick reply)
|
||||
return [text];
|
||||
|
||||
Reference in New Issue
Block a user