some deletions
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / cosmiconfig / dist / readFile.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/cosmiconfig/dist/readFile.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/cosmiconfig/dist/readFile.js
deleted file mode 100644 (file)
index 87398c0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-//      
-'use strict';
-
-const fs = require('fs');
-
-                
-                          
-  
-
-function readFile(filepath        , options          )                   {
-  options = options || {};
-  const throwNotFound = options.throwNotFound || false;
-
-  return new Promise((resolve, reject) => {
-    fs.readFile(filepath, 'utf8', (err, content) => {
-      if (err && err.code === 'ENOENT' && !throwNotFound) {
-        return resolve(null);
-      }
-      if (err) return reject(err);
-      resolve(content);
-    });
-  });
-}
-
-readFile.sync = function readFileSync(
-  filepath        ,
-  options          
-)          {
-  options = options || {};
-  const throwNotFound = options.throwNotFound || false;
-
-  try {
-    return fs.readFileSync(filepath, 'utf8');
-  } catch (err) {
-    if (err.code === 'ENOENT' && !throwNotFound) {
-      return null;
-    }
-    throw err;
-  }
-};
-
-module.exports = readFile;