Skip to content

Commit

Permalink
Rename getProcessNameOnPort -> getProcessForPort
Browse files Browse the repository at this point in the history
- better reflects its broadened scope (both command and directory)
  • Loading branch information
ianmcnally committed Oct 6, 2016
1 parent e3dcaaf commit 9c2e3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function run(port) {
runDevServer(host, port, protocol);
}

function getProcessNameOnPort(port) {
function getProcessForPort(port) {
var execOptions = { encoding: 'utf8' };

try {
Expand All @@ -286,7 +286,7 @@ detect(DEFAULT_PORT).then(port => {
}

clearConsole();
var existingProcess = getProcessNameOnPort(DEFAULT_PORT);
var existingProcess = getProcessForPort(DEFAULT_PORT);
var question =
chalk.yellow('Something is already running on port ' + DEFAULT_PORT + '.' +
((existingProcess) ? ' Probably:\n ' + existingProcess : '')) +
Expand Down

0 comments on commit 9c2e3aa

Please sign in to comment.