mirror of
https://github.com/hotomoe/hotomoe
synced 2024-11-25 07:36:24 +09:00
Remove needless type annotations
This commit is contained in:
parent
f0e7a3f976
commit
ac2e820e7e
@ -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, '<p>$2</p>');
|
||||
}
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user