Skip to content

Commit 52a74a8

Browse files
committed
orderd imports consistently
1 parent a905bcc commit 52a74a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

07-creational-design-patterns/08-singleton-dependencies/blog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { db } from './db.js'
21
import { promisify } from 'util'
2+
import { db } from './db.js'
33

44
const dbRun = promisify(db.run.bind(db))
55
const dbAll = promisify(db.all.bind(db))

07-creational-design-patterns/09-dependency-injection/import-posts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Blog } from './blog.js'
21
import { dirname, join } from 'path'
32
import { fileURLToPath } from 'url'
3+
import { Blog } from './blog.js'
44
import { createDb } from './db.js'
55

66
const __dirname = dirname(fileURLToPath(import.meta.url))

07-creational-design-patterns/09-dependency-injection/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Blog } from './blog.js'
21
import { dirname, join } from 'path'
32
import { fileURLToPath } from 'url'
3+
import { Blog } from './blog.js'
44
import { createDb } from './db.js'
55

66
const __dirname = dirname(fileURLToPath(import.meta.url))

0 commit comments

Comments
 (0)