Skip to content

Commit bb67c31

Browse files
committed
Fix linter errors
1 parent fef1c2c commit bb67c31

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

src/commands/commands.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ function action(event: Office.AddinCommands.Event) {
2222
};
2323

2424
// Show a notification message.
25-
Office.context.mailbox.item.notificationMessages.replaceAsync("ActionPerformanceNotification", message);
25+
Office.context.mailbox.item.notificationMessages.replaceAsync(
26+
"ActionPerformanceNotification",
27+
message
28+
);
2629

2730
// Be sure to indicate when the add-in command function is complete.
2831
event.completed();

src/taskpane/project.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@ export async function run() {
2727

2828
// Set the field value. If the call is successful, set the next field.
2929
for (let index = 0; index < targetFields.length; index++) {
30-
Office.context.document.setTaskFieldAsync(taskGuid, targetFields[index], fieldValues[index], (result) => {
31-
if (result.status === Office.AsyncResultStatus.Succeeded) {
32-
index++;
33-
} else {
34-
console.log(result.error);
30+
Office.context.document.setTaskFieldAsync(
31+
taskGuid,
32+
targetFields[index],
33+
fieldValues[index],
34+
(result) => {
35+
if (result.status === Office.AsyncResultStatus.Succeeded) {
36+
index++;
37+
} else {
38+
console.log(result.error);
39+
}
3540
}
36-
});
41+
);
3742
}
3843
} else {
3944
console.log(result.error);

0 commit comments

Comments
 (0)