Page MenuHomeWildfire Games

splitRatingFromNick(playername) cleanup
ClosedPublic

Authored by ffffffff on Nov 30 2017, 1:48 PM.

Details

Summary

is this better code? not sure

Test Plan

discuss

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

ffffffff created this revision.Nov 30 2017, 1:48 PM

is this better code?

[0] requires the reader know the returned arguments and order, while nick carries that information.
So it must be better code independent of taste.

In D1087#43208, @elexis wrote:

is this better code?

[0] requires the reader know the returned arguments and order, while nick carries that information.
So it must be better code independent of taste.

right

elexis resigned from this revision.Dec 12 2017, 8:35 PM
bb accepted this revision.Dec 12 2017, 11:54 PM
bb added a subscriber: bb.

Code is the same, changes trivial enough => no new patch required

binaries/data/mods/public/gui/common/gamedescription.js
24

missing space after { and before }

152–155

That's a duplicate call, worth a variable

binaries/data/mods/public/gui/lobby/lobby.js
919

would prefer playerNickRating

This revision is now accepted and ready to land.Dec 12 2017, 11:54 PM

true

tx for review

:))

ffffffff updated this revision to Diff 4764.Dec 13 2017, 12:54 AM
This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Dec 22 2017, 8:20 PM