Skip to content

Commit fffce73

Browse files
committed
[DATALAD RUNCMD] sty: Format [ignore-rev]
=== Do not change lines below === { "chain": [], "cmd": "deno fmt", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 038e8bd commit fffce73

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/files/streams.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export class UnicodeDecodeError extends Error {
1010

1111
const _decode = TextDecoder.prototype.decode
1212

13-
TextDecoder.prototype.decode = function(input, options) {
13+
TextDecoder.prototype.decode = function (input, options) {
1414
try {
1515
return _decode.call(this, input, options)
1616
} catch (error) {
17-
throw { code: 'INVALID_FILE_ENCODING', message: error}
17+
throw { code: 'INVALID_FILE_ENCODING', message: error }
1818
}
1919
}
2020

@@ -26,7 +26,7 @@ export class UTF8StreamTransformer implements Transformer<Uint8Array, string> {
2626
private decoder: TextDecoder
2727
private firstChunk: boolean
2828

29-
constructor(options = {fatal: false}) {
29+
constructor(options = { fatal: false }) {
3030
this.decoder = new TextDecoder('utf-8', options)
3131
this.firstChunk = true
3232
}
@@ -56,6 +56,6 @@ export class UTF8StreamTransformer implements Transformer<Uint8Array, string> {
5656
/**
5757
* Creates a TransformStream that validates and decodes UTF-8 text
5858
*/
59-
export function createUTF8Stream(options = {fatal: false}) {
59+
export function createUTF8Stream(options = { fatal: false }) {
6060
return new TransformStream(new UTF8StreamTransformer(options))
6161
}

src/files/tsv.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ Deno.test('TSV loading', async (t) => {
194194
}
195195
})
196196

197-
198197
// Tests will have populated the memoization cache
199198
loadTSV.cache.clear()
200199
})

src/schema/expressionLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const expressionFunctions = {
9292
},
9393
unique: <T>(list: T[]): T[] | null => {
9494
if (list !== null) {
95-
return [...new Set(list)]
95+
return [...new Set(list)]
9696
}
9797
return null
9898
},

src/setup/loadSchema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { setCustomMetadataFormats } from '../validators/json.ts'
55

66
/**
77
* Load the schema from the specification
8-
*
98
*/
109
export async function loadSchema(version?: string): Promise<Schema> {
1110
let schemaUrl = version
@@ -33,7 +32,9 @@ export async function loadSchema(version?: string): Promise<Schema> {
3332
// If a custom schema URL was explicitly provided, fail rather than falling back
3433
console.error(error)
3534
throw new Error(
36-
`Failed to load schema from ${schemaUrl}: ${error instanceof Error ? error.message : String(error)}`,
35+
`Failed to load schema from ${schemaUrl}: ${
36+
error instanceof Error ? error.message : String(error)
37+
}`,
3738
)
3839
}
3940
}

0 commit comments

Comments
 (0)