Skip to content

Commit c7a64de

Browse files
committed
minor style update
1 parent 446f47f commit c7a64de

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,17 @@
8181
}
8282

8383
function checkInput() {
84-
if (secretInput.value.trim() === '') {
85-
showError("Secret cannot be empty");
86-
throw new Error("Secret cannot be empty");
87-
}
8884
if (fileInput.files.length === 0) {
8985
showError("No image file selected");
9086
throw new Error("No image file selected");
9187
}
88+
if (secretInput.value.trim() === '') {
89+
showError("Secret cannot be empty");
90+
throw new Error("Secret cannot be empty");
91+
}
9292
}
9393

9494
async function showError(msg) {
95-
resetOutput();
9695
errorDiv.textContent = msg;
9796
errorDiv.style.display = 'block';
9897
console.error(msg);

0 commit comments

Comments
 (0)