Skip to content

Commit 076cb00

Browse files
Potential fix for code scanning alert no. 72: Unused variable, import, function or class
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 09d416f commit 076cb00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/js/techreport/utils

src/js/techreport/utils/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function capitalizeFirstLetter(theString) {
6464
function printMonthYear(theDate) {
6565
if (!theDate || theDate.length != 10) return;
6666

67-
const [year, month, day] = theDate.split('-');
67+
const [year, month] = theDate.split('-');
6868
const date = new Date(year, month - 1);
6969
const formattedDate = date.toLocaleString('default', {
7070
month: 'long',

0 commit comments

Comments
 (0)