You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dead code: GetBrowserInfo() in src/lib/browser-detect.ts is never used
GetBrowserInfo() (src/lib/browser-detect.ts:3-49) is a ~45-line user-agent parser exported alongside isMobile on line 84, but it has no callers anywhere in the tree:
Dead code:
GetBrowserInfo()insrc/lib/browser-detect.tsis never usedGetBrowserInfo()(src/lib/browser-detect.ts:3-49) is a ~45-line user-agent parser exported alongsideisMobileon line 84, but it has no callers anywhere in the tree:isMobilefrom the same module is used widely (~20 references); onlyGetBrowserInfois dead.Fix
GetBrowserInfofunction (src/lib/browser-detect.ts:3-49).export { GetBrowserInfo, isMobile }toexport { isMobile }.No other changes needed. After the edit, run
npm run checkandnpm run test:unitto confirm nothing broke.Found during a scheduled code-quality audit.