summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2026-11-23 19:52:55 +0100
committerJoel Klinghed <the_jk@spawned.biz>2026-11-23 19:52:55 +0100
commita11578c7215daba4bdb9e3c4a3330a3dd7e33ee8 (patch)
treee15c7cd64ba8df976138195fcf5f1454ae0cefb5
parentbdfb26b98b66ad09579dcd175be88c2114156045 (diff)
server: drop unnecessary braces in string interpolations
-rw-r--r--server/lib/core/state/character_state.dart2
-rw-r--r--server/lib/net/app.dart2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/core/state/character_state.dart b/server/lib/core/state/character_state.dart
index 848bc1c..d8a6393 100644
--- a/server/lib/core/state/character_state.dart
+++ b/server/lib/core/state/character_state.dart
@@ -218,7 +218,7 @@ class CharacterState extends FigureState {
String toSave() {
return '{'
- '"level": ${level}, '
+ '"level": $level, '
'"useFHPerks": ${jsonEncode(useFHPerks)}, '
'"display": ${jsonEncode(display)}, '
'"perkList": ${_perkList.toString()} '
diff --git a/server/lib/net/app.dart b/server/lib/net/app.dart
index a57aab0..1d66c49 100644
--- a/server/lib/net/app.dart
+++ b/server/lib/net/app.dart
@@ -26,7 +26,7 @@ const int _kCacheYearSeconds = 60 * 60 * 24 * 365;
/// data, images, in-game translations, and the content-hashed build
/// outputs. Browsers keep them for a year and never revalidate.
const String _kImmutableCacheControl =
- 'public, max-age=${_kCacheYearSeconds}, immutable';
+ 'public, max-age=$_kCacheYearSeconds, immutable';
/// `Cache-Control` for the SPA entry point: always revalidate, so a
/// rebuilt app reaches open tabs on the next navigation.