💄 Remove unneeded requires, variables, commas, and parens
Esse commit está contido em:
@@ -1,8 +1,6 @@
|
|||||||
path = require 'path'
|
path = require 'path'
|
||||||
fs = require 'fs-plus'
|
fs = require 'fs-plus'
|
||||||
|
|
||||||
{_} = require 'atom'
|
|
||||||
|
|
||||||
## Platform specific helpers
|
## Platform specific helpers
|
||||||
module.exports =
|
module.exports =
|
||||||
# Public: Returns true if being run from within Windows
|
# Public: Returns true if being run from within Windows
|
||||||
@@ -18,20 +16,20 @@ module.exports =
|
|||||||
fs.removeSync(evilFilesPath) if fs.existsSync(evilFilesPath)
|
fs.removeSync(evilFilesPath) if fs.existsSync(evilFilesPath)
|
||||||
fs.mkdirSync(evilFilesPath)
|
fs.mkdirSync(evilFilesPath)
|
||||||
|
|
||||||
if (@isWindows())
|
if @isWindows()
|
||||||
filenames = [
|
filenames = [
|
||||||
"a_file_with_utf8.txt",
|
"a_file_with_utf8.txt"
|
||||||
"file with spaces.txt",
|
"file with spaces.txt"
|
||||||
"utfa\u0306.md"
|
"utfa\u0306.md"
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
filenames = [
|
filenames = [
|
||||||
"a_file_with_utf8.txt",
|
"a_file_with_utf8.txt"
|
||||||
"file with spaces.txt",
|
"file with spaces.txt"
|
||||||
"goddam\nnewlines",
|
"goddam\nnewlines"
|
||||||
"quote\".txt",
|
"quote\".txt"
|
||||||
"utfa\u0306.md"
|
"utfa\u0306.md"
|
||||||
]
|
]
|
||||||
|
|
||||||
for filename in filenames
|
for filename in filenames
|
||||||
fd = fs.writeFileSync(path.join(evilFilesPath, filename), 'evil file!', flag: 'w')
|
fs.writeFileSync(path.join(evilFilesPath, filename), 'evil file!', flag: 'w')
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário