From ac2e820e7e94196847664668e531d16f85ad65f2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 18 Jan 2017 14:32:03 +0900 Subject: [PATCH] Remove needless type annotations --- gulpfile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index 09cbd98814..1bd78d7d62 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -71,14 +71,14 @@ gulp.task('build:ts', () => ); gulp.task('build:about:docs', () => { - function getLicenseHtml(path: string): string { + function getLicenseHtml(path: string) { return escapeHtml(fs.readFileSync(path, 'utf-8')) .replace(/\r\n/g, '\n') .replace(/(.)\n(.)/g, '$1 $2') .replace(/(^|\n)(.*?)($|\n)/g, '

$2

'); } - function getLicenseSectionHtml(path: string): string { + function getLicenseSectionHtml(path: string) { try { const pkg = JSON.parse(fs.readFileSync(Path.parse(path).dir + '/package.json', 'utf-8')); const licenseHtml = getLicenseHtml(path);