Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #9 from kentaromiura/cc-optimize
Browse files Browse the repository at this point in the history
remove the double indexof
  • Loading branch information
WebReflection committed Sep 27, 2013
2 parents 49d3aee + c1f716d commit 0f78d18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/polpetta
Expand Up @@ -872,8 +872,8 @@ var
false
),
arguments = resolveArguments(process.argv),
SSL = !!(~arguments.indexOf('--https') && arguments.splice(arguments.indexOf('--https'), 1)),
CORS = !!(~arguments.indexOf('--cors') && arguments.splice(arguments.indexOf('--cors'), 1)),
SSL = !!(~(SSL=arguments.indexOf('--https')) && arguments.splice(SSL, 1)),
CORS = !!(~(CORS=arguments.indexOf('--cors')) && arguments.splice(CORS, 1)),
// internal constants
CWD = process.cwd(),
HOST_USER_PORT = findPort(arguments),
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "0.3.8",
"version": "0.3.9",
"name": "polpetta",
"description": "Creates a web server in any folder and with runtime node.js modules capability plus get, post data and more",
"homepage": "https://github.com/WebReflection/polpetta",
Expand Down
4 changes: 2 additions & 2 deletions src/var.js
Expand Up @@ -56,8 +56,8 @@ var
false
),
arguments = resolveArguments(process.argv),
SSL = !!(~arguments.indexOf('--https') && arguments.splice(arguments.indexOf('--https'), 1)),
CORS = !!(~arguments.indexOf('--cors') && arguments.splice(arguments.indexOf('--cors'), 1)),
SSL = !!(~(SSL=arguments.indexOf('--https')) && arguments.splice(SSL, 1)),
CORS = !!(~(CORS=arguments.indexOf('--cors')) && arguments.splice(CORS, 1)),
// internal constants
CWD = process.cwd(),
HOST_USER_PORT = findPort(arguments),
Expand Down

0 comments on commit 0f78d18

Please sign in to comment.