| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 15 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import Client from '../client/client' |
||
| 2 | import Darwin from '../client/os/darwin' |
||
| 3 | |||
| 4 | function client(): Client { |
||
| 5 | switch (process.platform) { |
||
| 6 | case 'darwin': |
||
| 7 | return new Darwin |
||
| 8 | default: |
||
| 9 | return new Darwin // TODO: Catch unsupported OS. Currently just returning MacOS stuff as we're just creating a POC. |
||
| 10 | } |
||
| 11 | } |
||
| 12 | |||
| 13 | export { |
||
| 14 | client |
||
| 15 | } |