| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-04-22 19:07:07 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-04-22 19:07:07 UTC |
| parent | f92d78e81fed01f19b423144455b91644e902309 |
| borogove/Color.hx | +1 | -1 |
| borogove/Role.hx | +1 | -1 |
diff --git a/borogove/Color.hx b/borogove/Color.hx index c260493..29509b6 100644 --- a/borogove/Color.hx +++ b/borogove/Color.hx @@ -9,7 +9,7 @@ class Color { private static var cache: Map<String, String> = []; private static var cacheSize = 0; - public static function forString(s:String) { + public static function forString(s:String): String { final fromCache = cache[s]; if (fromCache != null) return fromCache; diff --git a/borogove/Role.hx b/borogove/Role.hx index a0b0af4..cb20035 100644 --- a/borogove/Role.hx +++ b/borogove/Role.hx @@ -43,7 +43,7 @@ class Role { /** Suggested color to use when displaying this Role **/ - public function color() { + public function color(): String { return Color.forString(id); } }