[scheduler, frontend] fix 2 tiny sonarcloud smells
Summary
Fixes 2 minor code smells introduced by recent commit.
Requires manual tests in pre-production
NO
References
Closes #579 (closed)
Fixes 2 minor code smells introduced by recent commit.
NO
Closes #579 (closed)