Skip to content

Commit

Permalink
chore: clean redundant calls (unplugin#202)
Browse files Browse the repository at this point in the history
Co-authored-by: Kellyton <kellyton@dingtalk.com>
  • Loading branch information
hzm18 and Kellyton-Z authored Jun 8, 2022
1 parent d975f70 commit 8640f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function createContext(options: Options = {}, root = process.cwd()) {
const content = generateDTS(dts)
if (content !== lastDTS) {
lastDTS = content
promises.push(fs.writeFile(dts, generateDTS(dts), 'utf-8'))
promises.push(fs.writeFile(dts, content, 'utf-8'))
}
}
if (eslintrc.enabled && eslintrc.filepath) {
Expand Down

0 comments on commit 8640f10

Please sign in to comment.