Skip to content

Commit 8640f10

Browse files
hzm18Kellyton-Z
andauthored
chore: clean redundant calls (unplugin#202)
Co-authored-by: Kellyton <[email protected]>
1 parent d975f70 commit 8640f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function createContext(options: Options = {}, root = process.cwd()) {
9090
const content = generateDTS(dts)
9191
if (content !== lastDTS) {
9292
lastDTS = content
93-
promises.push(fs.writeFile(dts, generateDTS(dts), 'utf-8'))
93+
promises.push(fs.writeFile(dts, content, 'utf-8'))
9494
}
9595
}
9696
if (eslintrc.enabled && eslintrc.filepath) {

0 commit comments

Comments
 (0)