1
0
mirror of synced 2026-01-06 06:02:35 -05:00

Fix JS syntax errors (#21278)

This commit is contained in:
James M. Greene
2021-09-03 00:00:03 -05:00
committed by GitHub
parent 40b376edc1
commit b680991468

View File

@@ -85,10 +85,10 @@ jobs:
const productionLink = `https://docs.github.com/${fileUrl}`
let markdownLine = ''
if (file.status == 'modified') {
markdownLine = `| [content/${fileName}](${sourceUrl}) | [Modified](${stagingLink}) | [Original](${productionLink}) | |\n'
} else if (file.status == 'added') {
markdownLine = `| New file: [content/${fileName}](${sourceUrl}) | [Modified](${stagingLink}) | | |\n'
if (file.status === 'modified') {
markdownLine = `| [content/${fileName}](${sourceUrl}) | [Modified](${stagingLink}) | [Original](${productionLink}) | |\n`
} else if (file.status === 'added') {
markdownLine = `| New file: [content/${fileName}](${sourceUrl}) | [Modified](${stagingLink}) | | |\n`
}
markdownTable += markdownLine
}