(user: GoogleChatUser | undefined)
| 175 | } |
| 176 | |
| 177 | function normalizeIdentity(user: GoogleChatUser | undefined): { platformId: string; name: string } { |
| 178 | const email = user?.email?.trim().toLowerCase() |
| 179 | const name = user?.name?.trim() || email || 'Unknown' |
| 180 | return { |
| 181 | platformId: email || name.toLowerCase(), |
| 182 | name, |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | function readJson<T>(filePath: string): T { |
| 187 | return JSON.parse(fs.readFileSync(filePath, 'utf8')) as T |
no outgoing calls
no test coverage detected