Cheer up prettier

This commit is contained in:
Oliver Blanthorn 2021-06-26 22:14:28 +02:00
parent 1a4dcddec2
commit 81501f03cf
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -2442,7 +2442,7 @@ export async function tabopen(...addressarr: string[]): Promise<browser.tabs.Tab
const address = query.join(" ")
if (!ABOUT_WHITELIST.includes(address) && /^(about|file):.*/.exec(address)) {
return (nativeopen(address) as unknown) as browser.tabs.Tab // I don't understand why changing the final return below meant I had to change this
return nativeopen(address) as unknown as browser.tabs.Tab // I don't understand why changing the final return below meant I had to change this
}
const aucon = new AutoContain()
@ -4782,8 +4782,7 @@ export async function ttscontrol(action: string) {
*/
//#background_helper
export function buildFilterConfigs(filters: string[]): Perf.StatsFilterConfig[] {
return filters.map(
(filter: string): Perf.StatsFilterConfig => {
return filters.map((filter: string): Perf.StatsFilterConfig => {
if (filter.endsWith("/")) {
return { kind: "ownerName", ownerName: filter.slice(0, -1) }
} else if (filter === ":start") {
@ -4799,8 +4798,7 @@ export function buildFilterConfigs(filters: string[]): Perf.StatsFilterConfig[]
// So at least we return something now
return { kind: "functionName", functionName: filter }
}
},
)
})
}
/**