diff --git a/jsprettier/sthelper.py b/jsprettier/sthelper.py index 1bd1ac55..ca70f1d5 100644 --- a/jsprettier/sthelper.py +++ b/jsprettier/sthelper.py @@ -194,10 +194,7 @@ def make_local_prettier_path(somepath): # # 4. check globally install prettier - prettier_cmd = 'prettier' - if is_windows(): - prettier_cmd = ensure_file_has_ext(prettier_cmd, ".cmd") - return which(prettier_cmd) + return which('prettier') # handle cases when the user specifies a prettier cli path that is # relative to the working file or project: