From a7ee4ad0bb173afbc0ea74173b6247a9bb5e1477 Mon Sep 17 00:00:00 2001 From: David Bushong Date: Thu, 28 Oct 2021 19:25:45 -0700 Subject: [PATCH] fix: revert extra license newline --- lib/license/index.js | 2 +- test/license/index.test.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/license/index.js b/lib/license/index.js index f6958ad..19e9c3d 100644 --- a/lib/license/index.js +++ b/lib/license/index.js @@ -58,7 +58,7 @@ const COMMENT_TYPES = { return ` ${`* ${line}`.trim()}`; }) .join('\n'); - return `/*\n${body}\n */\n`; + return `/*\n${body}\n */`; }, }, '.coffee': { diff --git a/test/license/index.test.js b/test/license/index.test.js index 6d94bc4..ba80d59 100644 --- a/test/license/index.test.js +++ b/test/license/index.test.js @@ -103,7 +103,6 @@ describe('addLicenseHeaders', () => { /* * SIMPLE */ - import { mittens } from 'kittens'; ` );