From fca2f2c543ec9e77a7867127e86d0b1e30dd2446 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sat, 4 Apr 2020 19:46:47 -0700
Subject: [PATCH] use more compact lambda syntax

---
 src/descriptions/familySummaries.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/descriptions/familySummaries.js b/src/descriptions/familySummaries.js
index 832fe3c96b9..e08b39b9313 100644
--- a/src/descriptions/familySummaries.js
+++ b/src/descriptions/familySummaries.js
@@ -83,7 +83,7 @@ App.Desc.family = (function() {
 			r.push(`${He} was <span class="lightgreen">born from ${knownSlave(slave.mother)}'s</span> fertile womb.`);
 		}
 
-		let children = V.slaves.filter(function(s) { return slave.ID === s.father; });
+		let children = V.slaves.filter((s) => slave.ID === s.father);
 		if (children.length > 2) {
 			r.push(`${He} <span class="lightgreen">fathered ${slaveListToText(children)}.</span>`);
 		} else if (children.length > 1) {
@@ -92,7 +92,7 @@ App.Desc.family = (function() {
 			r.push(`${He} <span class="lightgreen">fathered a single slave of yours: ${slaveListToText(children)}.</span>`);
 		}
 
-		children = V.slaves.filter(function(s) { return slave.ID === s.mother; });
+		children = V.slaves.filter((s) => slave.ID === s.mother);
 		if (children.length > 2) {
 			r.push(`${He} <span class="lightgreen">gave birth to ${slaveListToText(children)}.</span>`);
 		} else if (children.length > 1) {
@@ -202,7 +202,7 @@ App.Desc.family = (function() {
 			}
 
 			/* grandchild - determines how many grandchildren the current slave has */
-			children = V.slaves.filter((s) => { return isGrandparentP(s, slave); });
+			children = V.slaves.filter((s) => isGrandparentP(s, slave));
 			if (children.length > 0) {
 				r.push(`${He} has`);
 				if (children.length > 2) {
-- 
GitLab