]> git.cworth.org Git - lmno.games/commitdiff
Use triple-equals instead of double
authorCarl Worth <cworth@cworth.org>
Thu, 11 Jun 2020 14:24:39 +0000 (07:24 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Jun 2020 14:24:39 +0000 (07:24 -0700)
Following Richard's rule of "only ever use triple-equals, never double".

empathy/empathy.jsx

index cd5f3423d845f731e309e5521287a58e68f93c77..6f051f484f3ca3dfc71a21835ac787360192f434 100644 (file)
@@ -328,7 +328,7 @@ class ActivePrompt extends React.PureComponent {
     const response = await fetch_post_json(`answer/${this.props.prompt.id}`, {
       answers: this.answers.map(r => r.current.value)
     });
-    if (response.status == 200) {
+    if (response.status === 200) {
       const result = await response.json();
       if (! result.valid) {
         add_message("danger", result.message);