Skip to content

Commit 00d1b94

Browse files
committed
chore: cleanup
1 parent fbc395d commit 00d1b94

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.changeset/dull-badgers-sleep.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"pretty-quick": patch
2+
"pretty-quick": minor
33
---
44

5-
Replace `execa` with `tinyexec`
5+
feat: replace `execa` with `tinyexec`

src/scms/git.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const detect = (directory: string) => {
4343
: gitWorkTreeDirectory
4444
}
4545

46-
const runGit = async (directory: string, args: string[]) =>
46+
const runGit = (directory: string, args: string[]) =>
4747
exec('git', args, {
4848
nodeOptions: {
4949
cwd: directory,
@@ -118,6 +118,5 @@ export const getUnstagedChangedFiles = (directory: string) => {
118118
return getChangedFiles(directory, null, false)
119119
}
120120

121-
export const stageFile = async (directory: string, file: string) => {
122-
await runGit(directory, ['add', file])
123-
}
121+
export const stageFile = (directory: string, file: string) =>
122+
runGit(directory, ['add', file])

src/scms/hg.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const detect = (directory: string) => {
1515
}
1616
}
1717

18-
const runHg = async (directory: string, args: string[]) =>
18+
const runHg = (directory: string, args: string[]) =>
1919
exec('hg', args, {
2020
nodeOptions: {
2121
cwd: directory,
@@ -58,6 +58,5 @@ export const getChangedFiles = async (
5858

5959
export const getUnstagedChangedFiles = () => []
6060

61-
export const stageFile = async (directory: string, file: string) => {
62-
await runHg(directory, ['add', file])
63-
}
61+
export const stageFile = (directory: string, file: string) =>
62+
runHg(directory, ['add', file])

0 commit comments

Comments
 (0)