lib/ecstatic.js
function tryServeWithGzip() {
      fs.stat(gzippedFile, (err, stat) => {
        if (!err && stat.isFile()) {
          hasGzipId12(gzippedFile, (gzipErr, isGzip) => {
            if (!gzipErr && isGzip) {
              file = gzippedFile;
              serve(stat);
            } else {
              statFile();
            }
          });
        } else {
          statFile();
        }
      });
    }
function tryServeWithGzip() {
      fs.stat(gzippedFile, (err, stat) => {
        if (!err && stat.isFile()) {
          hasGzipId12(gzippedFile, (gzipErr, isGzip) => {
            if (!gzipErr && isGzip) {
              file = gzippedFile;
              serve(stat);
            } else {
              statFile();
            }
          });
        } else {
          statFile();
        }
      });
    }
function tryServeWithGzip ( ) { fs . stat ( gzippedFile , ( err , stat ) => { if ( ! err && stat . isFile ( ) ) { hasGzipId12 ( gzippedFile , ( gzipErr , isGzip ) => { if ( ! gzipErr && isGzip ) { file = gzippedFile ; serve ( stat ) ; } else { statFile ( ) ; } } ) ; } else { statFile ( ) ; } } ) ; }
serve gzip file if exists and is valid
serve gzip file if exists and is valid