Skip to content

Commit af9f98b

Browse files
Apply suggestions from code review
changing var's Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 9e25d16 commit af9f98b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scripts/scrumHelper.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ ${userReason}`;
291291
else if (projectUrl === 'open-event') project = 'Open Event';
292292
return project;
293293
}
294-
var intervalSubject = setInterval(() => {
294+
const intervalSubject = setInterval(() => {
295295
if (!window.emailClientAdapter) {
296296
return;
297297
}
@@ -358,7 +358,9 @@ ${userReason}`;
358358

359359
// Create and set new subject
360360
const newSubject = `[Scrum] ${name} - ${project} - ${dateCode} - False`;
361-
console.log('Setting new subject:', newSubject);
361+
if (window.DEBUG) {
362+
console.log('Setting new subject:', newSubject);
363+
}
362364

363365
scrumSubject.value = newSubject;
364366
scrumSubject.dispatchEvent(new Event('input', { bubbles: true }));

0 commit comments

Comments
 (0)