Passed
Push — develop ( 0d94ee...f7f5fa )
by Bjarn
01:50 queued 10s
created

src/utils/os.ts   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
dl 0
loc 15
c 0
b 0
f 0
rs 10
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 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
}