Skip to content

Commit c09733a

Browse files
chore: fix linter warnings (#1330)
1 parent 2d699c7 commit c09733a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/cli/src/tools/config/__tests__/index-test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ test('supports dependencies from user configuration with custom build type', ()
334334
'node_modules/react-native-test/package.json': '{}',
335335
'node_modules/react-native-test/ios/HelloWorld.xcodeproj/project.pbxproj':
336336
'',
337-
'node_modules/react-native-test/react-native.config.js': `module.exports = {}`,
337+
'node_modules/react-native-test/react-native.config.js':
338+
'module.exports = {}',
338339
'package.json': `{
339340
"dependencies": {
340341
"react-native": "0.0.1",

packages/platform-ios/src/commands/runIOS/parseXctraceIOSDevicesList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ import {Device} from '../../types';
2626
function parseIOSDevicesList(text: string): Array<Device> {
2727
const devices: Array<Device> = [];
2828
let isSimulator = false;
29-
if (text.indexOf('== Simulators ==') == -1) {
29+
if (text.indexOf('== Simulators ==') === -1) {
3030
return [];
3131
}
3232
text.split('\n').forEach((line) => {
3333
if (line === '== Simulators ==') {
3434
isSimulator = true;
3535
}
36-
const device = line.match(/(.*?) (\(([0-9\.]+)\) )?\(([0-9A-F-]+)\)/i);
36+
const device = line.match(/(.*?) (\(([0-9.]+)\) )?\(([0-9A-F-]+)\)/i);
3737
if (device) {
3838
const [, name, , version, udid] = device;
3939
const metadata: Device = {name, udid};

0 commit comments

Comments
 (0)