A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules

fix: remove unnecessary type check in utils.ts

- Fixed unnecessary conditional check in getLanguage function
- Since parameter is typed as string, typeof check and null check are redundant
- Simplified to check for falsy values only
- Updated log message to be more accurate

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

+2 -2
+2 -2
src/utils.ts
··· 59 59 } 60 60 61 61 export async function getLanguage(profile: string): Promise<string> { 62 - if (typeof profile !== 'string' || profile === null) { 62 + if (!profile) { 63 63 logger.warn( 64 - '[GETLANGUAGE] getLanguage called with invalid profile data, defaulting to \'eng\'.', 64 + '[GETLANGUAGE] getLanguage called with empty profile data, defaulting to \'eng\'.', 65 65 profile, 66 66 ); 67 67 return 'eng'; // Default or throw an error