From 36771a2dab2d2466e3b41599b6b929567e6caae2 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Tue, 3 Apr 2018 21:04:15 -0400 Subject: [PATCH] Prefer double quotes over backticks for identifiers --- app/attachments.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/attachments.js b/app/attachments.js index 7177118f5..0538aaf85 100644 --- a/app/attachments.js +++ b/app/attachments.js @@ -11,7 +11,7 @@ const PATH = 'attachments.noindex'; // getPath :: AbsolutePath -> AbsolutePath exports.getPath = (userDataPath) => { if (!isString(userDataPath)) { - throw new TypeError('`userDataPath` must be a string'); + throw new TypeError('"userDataPath" must be a string'); } return path.join(userDataPath, PATH); }; @@ -19,7 +19,7 @@ exports.getPath = (userDataPath) => { // ensureDirectory :: AbsolutePath -> IO Unit exports.ensureDirectory = async (userDataPath) => { if (!isString(userDataPath)) { - throw new TypeError('`userDataPath` must be a string'); + throw new TypeError('"userDataPath" must be a string'); } await fse.ensureDir(exports.getPath(userDataPath)); }; @@ -29,12 +29,12 @@ exports.ensureDirectory = async (userDataPath) => { // IO (Promise ArrayBuffer) exports.createReader = (root) => { if (!isString(root)) { - throw new TypeError('`root` must be a path'); + throw new TypeError('"root" must be a path'); } return async (relativePath) => { if (!isString(relativePath)) { - throw new TypeError('`relativePath` must be a string'); + throw new TypeError('"relativePath" must be a string'); } const absolutePath = path.join(root, relativePath); @@ -48,12 +48,12 @@ exports.createReader = (root) => { // IO (Promise RelativePath) exports.createWriter = (root) => { if (!isString(root)) { - throw new TypeError('`root` must be a path'); + throw new TypeError('"root" must be a path'); } return async (arrayBuffer) => { if (!isArrayBuffer(arrayBuffer)) { - throw new TypeError('`arrayBuffer` must be an array buffer'); + throw new TypeError('"arrayBuffer" must be an array buffer'); } const buffer = Buffer.from(arrayBuffer); @@ -71,12 +71,12 @@ exports.createWriter = (root) => { // IO Unit exports.createDeleter = (root) => { if (!isString(root)) { - throw new TypeError('`root` must be a path'); + throw new TypeError('"root" must be a path'); } return async (relativePath) => { if (!isString(relativePath)) { - throw new TypeError('`relativePath` must be a string'); + throw new TypeError('"relativePath" must be a string'); } const absolutePath = path.join(root, relativePath); @@ -93,7 +93,7 @@ exports.createName = () => { // getRelativePath :: String -> IO Path exports.getRelativePath = (name) => { if (!isString(name)) { - throw new TypeError('`name` must be a string'); + throw new TypeError('"name" must be a string'); } const prefix = name.slice(0, 2);