Skip to content

Commit 05116b4

Browse files
committed
sty: deno fmt
1 parent 02324a5 commit 05116b4

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

src/files/filetree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const nullFile = {
88
stream: new ReadableStream({
99
start(controller) {
1010
controller.close()
11-
}
11+
},
1212
}),
1313
text: () => Promise.resolve(''),
1414
readBytes: async (size: number, offset?: number) => new Uint8Array(),

src/files/streams.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { assert, assertEquals } from '@std/assert'
22
import { createUTF8Stream, UnicodeDecodeError } from './streams.ts'
3-
import { streamFromUint8Array, streamFromString } from '../tests/utils.ts'
3+
import { streamFromString, streamFromUint8Array } from '../tests/utils.ts'
44

55
Deno.test('createUTF8Stream', async (t) => {
66
await t.step('should return a TransformStream with UTF8StreamTransformer', () => {

src/files/tsv.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { assert, assertEquals, assertNotStrictEquals, assertObjectMatch, assertStrictEquals } from '@std/assert'
1+
import {
2+
assert,
3+
assertEquals,
4+
assertNotStrictEquals,
5+
assertObjectMatch,
6+
assertStrictEquals,
7+
} from '@std/assert'
28
import { pathToFile } from './filetree.ts'
39
import { loadTSV } from './tsv.ts'
410
import { streamFromString } from '../tests/utils.ts'

src/issues/datasetIssues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class DatasetIssues {
4242
if (!value) {
4343
continue
4444
}
45-
if (key === 'location' && typeof value === "string" && !value.startsWith('/')){
45+
if (key === 'location' && typeof value === 'string' && !value.startsWith('/')) {
4646
const key_ignore = ignore().add(value as string)
4747
found = found.filter((x) => x[key] && key_ignore.ignores(x[key].slice(1, x[key].length)))
4848
} else {

src/utils/memoize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type WithCache<T> = T & { cache: Map<string, any> }
22
interface FileLike {
3-
path: string,
3+
path: string
44
parent: { path: string }
55
}
66

src/validators/filenameIdentify.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Deno.test('test hasMatch', async (t) => {
6868

6969
await t.step('No match', async () => {
7070
const tmpFile = Deno.makeTempFileSync()
71-
const [ dir, base ] = tmpFile.split(SEPARATOR_PATTERN)
71+
const [dir, base] = tmpFile.split(SEPARATOR_PATTERN)
7272
const file = new BIDSFileDeno(dir, `/${base}`, ignore)
7373

7474
const context = new BIDSContext(file)

0 commit comments

Comments
 (0)