Remove redundant condition

07a601744361ac2c43f02259c77d6189066cf507

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -4215,7 +4215,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
4215 : baseChatReplace(power_user.sysprompt.post_history, name1, name2);4215 : baseChatReplace(power_user.sysprompt.post_history, name1, name2);
42164216
4217 // Only inject the jb if there is one4217 // Only inject the jb if there is one
4218 if (jailbreak && typeof(jailbreak) != 'undefined') {4218 if (jailbreak) {
4219 // When continuing generation of previous output, last user message precedes the message to continue4219 // When continuing generation of previous output, last user message precedes the message to continue
4220 if (isContinue) {4220 if (isContinue) {
4221 coreChat.splice(coreChat.length - 1, 0, { mes: jailbreak, is_user: true });4221 coreChat.splice(coreChat.length - 1, 0, { mes: jailbreak, is_user: true });