Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/helpers/repeat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HandlebarsHelper, HelperConstructorBlock } from "./helper";

export const repeatHelper: HelperConstructorBlock = (ctx) => {

Check warning on line 3 in src/helpers/repeat.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

'ctx' is defined but never used
return new HandlebarsHelper("repeat", function (rawNum, options) {
const num = Number.parseInt(rawNum);

Expand All @@ -9,7 +9,7 @@
}

let ret = "";
for (let i = 0; i < rawNum; i++) {
for (let i = 0; i < num; i++) {
ret += options.fn({ ...this, "repeat_index": i });
}
return ret;
Expand Down
Loading