Fix indent

This commit is contained in:
lowlighter
2021-03-16 13:55:44 +01:00
parent 97548177aa
commit 389a599a5e
2 changed files with 4 additions and 3 deletions

View File

@@ -512,6 +512,8 @@ Below is a list of used packages.
* To display server application * To display server application
* [puppeteer/puppeteer](https://github.com/puppeteer/puppeteer) * [puppeteer/puppeteer](https://github.com/puppeteer/puppeteer)
* To scrape the web * To scrape the web
* [libxmljs/libxmljs](https://github.com/libxmljs/libxmljs)
* To test and verify SVG validity
* [facebook/jest](https://github.com/facebook/jest) and [nodeca/js-yaml](https://github.com/nodeca/js-yaml) * [facebook/jest](https://github.com/facebook/jest) and [nodeca/js-yaml](https://github.com/nodeca/js-yaml)
* For unit testing * For unit testing
* [marak/faker.js](https://github.com/marak/Faker.js) * [marak/faker.js](https://github.com/marak/Faker.js)
@@ -522,8 +524,6 @@ Below is a list of used packages.
* To parse emojis and replace them by [twemojis](https://github.com/twitter/twemoji) * To parse emojis and replace them by [twemojis](https://github.com/twitter/twemoji)
* [jshemas/openGraphScraper](https://github.com/jshemas/openGraphScraper) * [jshemas/openGraphScraper](https://github.com/jshemas/openGraphScraper)
* To retrieve open graphs metadata * To retrieve open graphs metadata
* [libxmljs/libxmljs](https://github.com/libxmljs/libxmljs)
* To test and verify SVG validity
</details> </details>

View File

@@ -4,6 +4,7 @@
import util from "util" import util from "util"
import SVGO from "svgo" import SVGO from "svgo"
//Setup
export default async function metrics({login, q}, {graphql, rest, plugins, conf, die = false, verify = false, convert = null}, {Plugins, Templates}) { export default async function metrics({login, q}, {graphql, rest, plugins, conf, die = false, verify = false, convert = null}, {Plugins, Templates}) {
//Compute rendering //Compute rendering
try { try {
@@ -88,7 +89,7 @@
else else
console.debug(`metrics/compute/${login} > optimize > this feature is currently disabled due to display issues (use --optimize flag in experimental features to force enable it)`) console.debug(`metrics/compute/${login} > optimize > this feature is currently disabled due to display issues (use --optimize flag in experimental features to force enable it)`)
} }
//Verify SVG //Verify svg
if (verify) { if (verify) {
console.debug(`metrics/compute/${login} > verify SVG`) console.debug(`metrics/compute/${login} > verify SVG`)
const libxmljs = (await import("libxmljs")).default const libxmljs = (await import("libxmljs")).default