()
| 36 | useStartupNotification(_temp); |
| 37 | } |
| 38 | function _temp() { |
| 39 | const config = getGlobalConfig(); |
| 40 | const notifs = []; |
| 41 | for (const migration of MIGRATIONS) { |
| 42 | const notif = migration(config); |
| 43 | if (notif) { |
| 44 | notifs.push(notif); |
| 45 | } |
| 46 | } |
| 47 | return notifs.length > 0 ? notifs : null; |
| 48 | } |
| 49 | function recent(ts: number | undefined): boolean { |
| 50 | return ts !== undefined && Date.now() - ts < 3000; |
| 51 | } |
nothing calls this directly
no test coverage detected