Skip to content

Commit 9ec60d5

Browse files
committed
code style
#10
1 parent b12cc42 commit 9ec60d5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Show_metacritic_ratings.user.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,18 +332,17 @@ function removeAnythingAfterDash (str) {
332332
return str.trim()
333333
}
334334

335-
function broadenSearch (currentData, step, type) {
335+
function broadenSearch (data, step, type) {
336336
if (type === 'pcgame') {
337-
console.log("step: "+ step)
338337
if (step > 0) {
339-
currentData[0] = replaceBrackets(currentData[0])
338+
data[0] = replaceBrackets(data[0])
340339
} else if (step > 1) {
341-
currentData[0] = removeSymbols(currentData[0])
340+
data[0] = removeSymbols(data[0])
342341
} else if (step > 2) {
343-
currentData[0] = removeAnythingAfterDash(currentData[0])
342+
data[0] = removeAnythingAfterDash(data[0])
344343
}
345344
}
346-
return currentData
345+
return data
347346
}
348347

349348
function balloonAlert (message, timeout, title, css, click) {
@@ -1623,7 +1622,7 @@ function showHoverInfo (response, orgMetaUrl) {
16231622
}
16241623
}
16251624

1626-
function metacritic_general_product_setup() {
1625+
function metacritic_general_product_setup () {
16271626
current.broadenCounter = 0
16281627
}
16291628

0 commit comments

Comments
 (0)