mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
remove randomness
Reviewed By: @javache Differential Revision: D2490001
This commit is contained in:
parent
9076b71ac3
commit
256fa18ab2
@ -103,16 +103,14 @@ class HasteMap {
|
||||
chalk.yellow(
|
||||
'\nWARNING: Found multiple haste modules or packages ' +
|
||||
'with the name `%s`. Please fix this by adding it to ' +
|
||||
'the blacklist or deleting the modules keeping only one.\n' +
|
||||
'One of the following modules will be selected at random:\n%s\n'
|
||||
'the blacklist or deleting the modules keeping only one.\n'
|
||||
),
|
||||
name,
|
||||
modules.map(m => m.path).join('\n'),
|
||||
);
|
||||
}
|
||||
|
||||
const randomIndex = Math.floor(Math.random() * modules.length);
|
||||
return modules[randomIndex];
|
||||
return modules[0];
|
||||
}
|
||||
|
||||
return modules[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user