Skip to content

Commit 5fd9df5

Browse files
committed
refactor: - Manually move optional parameter after mandatory ones
1 parent 14a2a49 commit 5fd9df5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Renderer/QueryResultsRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ export class QueryResultsRenderer {
375375
const listItem = await taskLineRenderer.renderTaskLine({
376376
task: task,
377377
taskIndex: taskIndex,
378-
isFilenameUnique: isFilenameUnique,
379378
isTaskInQueryFile: this.filePath === task.path,
379+
isFilenameUnique: isFilenameUnique,
380380
});
381381

382382
// Remove all footnotes. They don't re-appear in another document.

src/Renderer/TaskLineRenderer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,21 +127,21 @@ export class TaskLineRenderer {
127127
* @note Output is based on the {@link DefaultTaskSerializer}'s format, with default (emoji) symbols
128128
* @param task The task to be rendered.
129129
* @param taskIndex Task's index in the list. This affects `data-line` data attributes of the list item.
130+
* @param isTaskInQueryFile
130131
* @param isFilenameUnique Whether the name of the file that contains the task is unique in the vault.
131132
* If it is undefined, the outcome will be the same as with a unique file name:
132133
* the file name only. If set to `true`, the full path will be returned.
133-
* @param isTaskInQueryFile
134134
*/
135135
public async renderTaskLine({
136136
task,
137137
taskIndex,
138-
isFilenameUnique,
139138
isTaskInQueryFile,
139+
isFilenameUnique,
140140
}: {
141141
task: Task;
142142
taskIndex: number;
143-
isFilenameUnique?: boolean;
144143
isTaskInQueryFile: boolean;
144+
isFilenameUnique?: boolean;
145145
}): Promise<HTMLLIElement> {
146146
const li = createAndAppendElement('li', this.parentUlElement);
147147
li.classList.add('task-list-item', 'plugin-tasks-list-item');

0 commit comments

Comments
 (0)