Skip to content

Commit 588a2cc

Browse files
committed
formatting fixes
1 parent 4d62c1a commit 588a2cc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/actions/find/src/dynamicImport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { pathToFileURL } from 'url'
1+
import {pathToFileURL} from 'url'
22

33
// - this exists because it looks like there's no straight-forward
44
// way to mock the dynamic import function, so mocking this instead
@@ -19,9 +19,9 @@ import { pathToFileURL } from 'url'
1919
//
2020
// - so this looks like a reasonable approach
2121
export function dynamicImport(path: string) {
22-
// - this check is for non-file imports.
22+
// - this if condition is for non-file imports.
2323
// - this can be encountered when using esbuild to compile TS plugin files
24-
// at run-time
24+
// at run-time.
2525
if (path.startsWith('data:') || path.startsWith('file:')) {
2626
return import(path)
2727
}

.github/actions/find/src/pluginManager.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as fs from 'fs'
22
import * as path from 'path'
3-
import { fileURLToPath } from 'url'
3+
import {fileURLToPath} from 'url'
44
import * as esbuild from 'esbuild'
5-
import { dynamicImport } from './dynamicImport.js'
6-
import type { Finding } from './types.d.js'
5+
import {dynamicImport} from './dynamicImport.js'
6+
import type {Finding} from './types.d.js'
77
import playwright from 'playwright'
88
import * as core from '@actions/core'
99

@@ -60,7 +60,7 @@ export async function loadBuiltInPlugins() {
6060
core.info('Loading built-in plugins')
6161

6262
const pluginsPath = path.join(__dirname, '../../../scanner-plugins/')
63-
await loadPluginsFromPath({ pluginsPath })
63+
await loadPluginsFromPath({pluginsPath})
6464
}
6565

6666
// exported for mocking/testing. not for actual use
@@ -80,7 +80,7 @@ export async function loadCustomPlugins() {
8080
return
8181
}
8282

83-
await loadPluginsFromPath({ pluginsPath, skipBuiltInPlugins: BUILT_IN_PLUGINS })
83+
await loadPluginsFromPath({pluginsPath, skipBuiltInPlugins: BUILT_IN_PLUGINS})
8484
}
8585

8686
// exported for mocking/testing. not for actual use
@@ -166,6 +166,6 @@ async function loadPluginViaJsFile(pluginFolderPath: string) {
166166
type InvokePluginParams = PluginDefaultParams & {
167167
plugin: Plugin
168168
}
169-
export function invokePlugin({ plugin, page, addFinding }: InvokePluginParams) {
170-
return plugin.default({ page, addFinding })
169+
export function invokePlugin({plugin, page, addFinding}: InvokePluginParams) {
170+
return plugin.default({page, addFinding})
171171
}

0 commit comments

Comments
 (0)