We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaa6256 commit 249f77bCopy full SHA for 249f77b
1 file changed
src/utils/utils.ts
@@ -173,7 +173,7 @@ export const Utils = {
173
const extFile = MimeTypeExt[mimeType];
174
path += `${extFile ? extFile : typeof data === "string" ? ".txt" : ""}`;
175
}
176
- if (mimeType != null && mimeType.toString() === MimeType[".json"] || !!ext && ext === MimeTypeExt["application/json"]) {
+ if ((mimeType != null && mimeType.toString() === MimeType[".json"]) || (!!ext && ext === MimeTypeExt["application/json"])) {
177
file = JSON.stringify(data, null, 2);
178
options = { encoding: "utf-8" };
179
} else {
0 commit comments