Skip to content

Commit 9c2e3aa

Browse files
committed
Rename getProcessNameOnPort -> getProcessForPort
- better reflects its broadened scope (both command and directory)
1 parent e3dcaaf commit 9c2e3aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/scripts/start.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function run(port) {
259259
runDevServer(host, port, protocol);
260260
}
261261

262-
function getProcessNameOnPort(port) {
262+
function getProcessForPort(port) {
263263
var execOptions = { encoding: 'utf8' };
264264

265265
try {
@@ -286,7 +286,7 @@ detect(DEFAULT_PORT).then(port => {
286286
}
287287

288288
clearConsole();
289-
var existingProcess = getProcessNameOnPort(DEFAULT_PORT);
289+
var existingProcess = getProcessForPort(DEFAULT_PORT);
290290
var question =
291291
chalk.yellow('Something is already running on port ' + DEFAULT_PORT + '.' +
292292
((existingProcess) ? ' Probably:\n ' + existingProcess : '')) +

0 commit comments

Comments
 (0)