Skip to content

Commit 26d74b6

Browse files
chore: code formatting
1 parent e015fac commit 26d74b6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

source/app/metrics/utils.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
//Imports
22
import octicons from "@primer/octicons"
3+
import twemojis from "@twemoji/parser"
34
import axios from "axios"
45
import processes from "child_process"
56
import crypto from "crypto"
67
import { minify as csso } from "csso"
7-
import { JSDOM } from "jsdom"
88
import * as d3 from "d3"
99
import emoji from "emoji-name-map"
1010
import { fileTypeFromBuffer } from "file-type"
1111
import fss from "fs"
1212
import fs from "fs/promises"
13+
import { JSDOM } from "jsdom"
1314
import linguist from "linguist-js"
1415
import { marked } from "marked"
1516
import minimatch from "minimatch"
@@ -27,7 +28,6 @@ import htmlsanitize from "sanitize-html"
2728
import sharp from "sharp"
2829
import git from "simple-git"
2930
import SVGO from "svgo"
30-
import twemojis from "@twemoji/parser"
3131
import url from "url"
3232
import util from "util"
3333
import xmlformat from "xml-formatter"
@@ -804,12 +804,12 @@ export class D3node {
804804

805805
createSVG(width, height) {
806806
const svg = this.element.append("svg").attr("xmlns", "http://www.w3.org/2000/svg")
807-
if ((width)&&(height))
807+
if ((width) && (height))
808808
svg.attr("width", width).attr("height", height)
809809
return svg
810810
}
811811

812812
svgString() {
813813
return this.element.select("svg").node()?.outerHTML || ""
814814
}
815-
}
815+
}

source/plugins/lines/index.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ export default async function({login, data, imports, rest, q, account}, {enabled
1212

1313
//Context
1414
let context = {mode: "user"}
15-
if (data.account) {
15+
if (data.account)
1616
context = {...context, mode: "organization"}
17-
}
1817
else if (q.repo) {
1918
console.debug(`metrics/compute/${login}/plugins > people > switched to repository mode`)
2019
context = {...context, mode: "repository"}
@@ -38,7 +37,7 @@ export default async function({login, data, imports, rest, q, account}, {enabled
3837
return
3938
//Compute changes
4039
repos[handle] = {added: 0, deleted: 0, changed: 0}
41-
const contributors = stats.filter(({author}) => (context.mode === "repository")||(context.mode === "organization") ? true : author?.login?.toLocaleLowerCase() === login.toLocaleLowerCase())
40+
const contributors = stats.filter(({author}) => (context.mode === "repository") || (context.mode === "organization") ? true : author?.login?.toLocaleLowerCase() === login.toLocaleLowerCase())
4241
for (const contributor of contributors) {
4342
let added = 0, changed = 0, deleted = 0
4443
contributor.weeks.forEach(({a = 0, d = 0, c = 0, w}) => {

source/plugins/stargazers/worldmap/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Client as Gmap } from "@googlemaps/google-maps-services-js"
33
import color from "color"
44
import * as d3 from "d3"
5-
import {D3node} from "../../../app/metrics/utils.mjs"
5+
import { D3node } from "../../../app/metrics/utils.mjs"
66

77
/**
88
* Worldmap

0 commit comments

Comments
 (0)