projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started code review + some fixes (unfinished)
[vchess.git]
/
client
/
src
/
data
/
problemCheck.js
diff --git
a/client/src/data/problemCheck.js
b/client/src/data/problemCheck.js
index
3b9ccb4
..
652daae
100644
(file)
--- a/
client/src/data/problemCheck.js
+++ b/
client/src/data/problemCheck.js
@@
-1,9
+1,8
@@
-export function checkProblem(p)
-{
+export function checkProblem(p) {
const vid = parseInt(p.vid);
const vid = parseInt(p.vid);
- if (isNaN(vid) || vid <= 0)
- return "Please select a variant";
+ if (isNaN(vid) || vid <= 0) return "Please select a variant";
- if (!V.IsGoodFen(p.fen))
- return "Bad FEN string";
+ if (!V.IsGoodFen(p.fen)) return "Bad FEN string";
+
+ return "";
}
}