Skip to content

Commit a575f39

Browse files
committed
default encoding option
1 parent 8cb9751 commit a575f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function attemptToReadFileData(filePath: string, encoding: fs.EncodingOpt
3030
}
3131

3232
// Tries to read the file data decoded from TOML, returns null if unsuccessful
33-
export function attemptToReadTOMLData<T>(filePath: string, encoding: fs.EncodingOption): T | null {
33+
export function attemptToReadTOMLData<T>(filePath: string, encoding: fs.EncodingOption="utf-8"): T | null {
3434
try {
3535
const fileData = fs.readFileSync(filePath, encoding) as string;
3636

0 commit comments

Comments
 (0)