Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 | 3x 3x 3x 1x 1x 1x 1x 3x | import LinuxPlatformSetup from './linux'; import WindowsPlatformSetup from './windows'; export default (c) => { const { process: { platform } } = c; I if (platform === 'linux') return new LinuxPlatformSetup(c); I if (platform === 'win32') return new WindowsPlatformSetup(c); // @todo add support for more throw new Error('Platform unsupported for automated SDK setup'); }; |