Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Mar 22, 2018
1 parent 7891a42 commit 18051f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/parse-glossary-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ async function parseGlossaryDoc (locale) {
}, {})
}

module.exports = parseGlossaryDoc
module.exports = parseGlossaryDoc
1 change: 0 additions & 1 deletion script/build-glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ parseGlossaryDoc().then(results => {
fs.writeFileSync(glossaryFile, JSON.stringify(glossary, null, 2))
console.log(`Wrote ${glossaryFile} with ${glossary.length} entries.`)
})

2 changes: 1 addition & 1 deletion script/build-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ async function main () {
)
}

main()
main()
5 changes: 2 additions & 3 deletions script/upload-glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require('dotenv-safe').load()

const fs = require('fs')
const path = require('path')
const {post} = require('got')
const FormData = require('form-data')
const tmp = require('tmp')
Expand All @@ -15,7 +14,7 @@ const form = new FormData()

// make strings safe for writing to a CSV file
function csvify (string) {
return '"' + string.replace(/\"/g, '\"') + '"'
return '"' + string.replace(/"/g, '"') + '"'
}

// Crowdin expects CSV files
Expand All @@ -37,4 +36,4 @@ post(url, {body: form})
.catch(err => {
console.error('Problem uploading glossary')
console.error(err)
})
})

0 comments on commit 18051f0

Please sign in to comment.