Skip to content

Commit 90e4b23

Browse files
72636csamchungy
andauthored
Add explicit return type
Co-authored-by: Sam Chung <[email protected]>
1 parent 52f4243 commit 90e4b23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cli/adapter/prettier.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ let languages: SupportLanguage[] | undefined;
3535
*
3636
* - https://github.com/prettier/prettier/blob/2.4.1/src/main/options.js#L167
3737
* - seek-oss/skuba#659
38-
*
3938
*/
40-
export const inferParser = (filepath: string) => {
39+
export const inferParser = (filepath: string): string | undefined => {
4140
const filename = path.basename(filepath).toLowerCase();
4241

4342
languages ??= getSupportInfo().languages.filter((language) => language.since);

0 commit comments

Comments
 (0)