Draft Ball variant + some fixes, enhancements and code cleaning
[vchess.git] / client / src / variants / Suction.js
index ac3aeb0..2038e4f 100644 (file)
@@ -20,9 +20,10 @@ export class SuctionRules extends ChessRules {
   }
 
   static ParseFen(fen) {
-    return Object.assign({}, ChessRules.ParseFen(fen), {
-      cmove: fen.split(" ")[4]
-    });
+    return Object.assign(
+      ChessRules.ParseFen(fen),
+      { cmove: fen.split(" ")[4] }
+    );
   }
 
   static IsGoodFen(fen) {