Enable no-case-declarations lint

This commit is contained in:
valadaptive
2023-12-02 10:14:06 -05:00
parent a665a4897d
commit 27e63a7a77
6 changed files with 14 additions and 8 deletions

View File

@@ -1898,7 +1898,7 @@ async function checkWorldInfo(chat, maxContext) {
case world_info_position.ANBottom:
ANBottomEntries.unshift(entry.content);
break;
case world_info_position.atDepth:
case world_info_position.atDepth: {
const existingDepthIndex = WIDepthEntries.findIndex((e) => e.depth === entry.depth ?? DEFAULT_DEPTH);
if (existingDepthIndex !== -1) {
WIDepthEntries[existingDepthIndex].entries.unshift(entry.content);
@@ -1909,6 +1909,7 @@ async function checkWorldInfo(chat, maxContext) {
});
}
break;
}
default:
break;
}