]> git.cworth.org Git - empires-server/commit
tictactoe: Simplify code by not reusing the expression "this.state"
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 23:14:04 +0000 (16:14 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 23:14:04 +0000 (16:14 -0700)
commitcf23efebe1600d10396b674e20e7cdf7f88bb58f
treeee34ac6ce141417a4b71f42d24e41a5d19ac4e23
parent041cdbd90052345df5a05779ada61aec53e403d4
tictactoe: Simplify code by not reusing the expression "this.state"

Instead, just call this once with "const state = this.state" and then
just use "state" for all subsequent uses.
tictactoe.js