Skip to content

Commit 02fccb1

Browse files
author
Martii
committed
Missed STYLEGUIDE.md conformance
* Still used to a slightly different coding style myself...apologies Applies to OpenUserJS#658, OpenUserJS#656, OpenUserJS#486, and OpenUserJS#180
1 parent 07f4fd2 commit 02fccb1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

controllers/scriptStorage.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@ exports.caseInsensitive = caseInsensitive;
4646

4747
function caseSensitive(aInstallName, aMoreThanInstallName) {
4848

49-
var rExpression = null;
5049
var rMatchExpression = aMoreThanInstallName ? /^(.*)\/(.*)\/(.*)\/(.*)$/ : /^(.*)\/(.*)$/;
5150
var username = '';
51+
var char = null;
52+
var rExpression = null;
5253

5354
var matches = aInstallName.match(rMatchExpression);
5455
if (matches) {
5556
if (aMoreThanInstallName) {
5657

57-
for (var char in matches[2]) {
58+
for (char in matches[2]) {
5859

5960
if (matches[2][char].toLowerCase() !== matches[2][char].toUpperCase()) {
6061
username += '[' +
@@ -76,7 +77,7 @@ function caseSensitive(aInstallName, aMoreThanInstallName) {
7677
);
7778
} else {
7879

79-
for (var char in matches[1]) {
80+
for (char in matches[1]) {
8081

8182
if (matches[1][char].toLowerCase() !== matches[1][char].toUpperCase()) {
8283
username += '[' +

0 commit comments

Comments
 (0)