Skip to content

Commit b7ca538

Browse files
author
Jérémy
committed
refactor: clean up
1 parent 5d4c8fa commit b7ca538

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/make-get-mixin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,11 @@ export default function makeFindMixin(options) {
120120
},
121121
// add the created lifecycle hook only if local option is falsy
122122
...(!local && {
123-
created: function created() {
124-
debug &&
123+
created() {
124+
if (debug) {
125125
console.log(
126126
`running 'created' hook in makeGetMixin for service "${service}" (using name ${nameToUse}")`
127127
)
128-
if (debug) {
129128
console.log(ID, this[ID])
130129
console.log(PARAMS, this[PARAMS])
131130
console.log(FETCH_PARAMS, this[FETCH_PARAMS])

test/make-find-mixin.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('Find Mixin', function() {
4444

4545
it('correctly forms mixin data', function() {
4646
const todosMixin = makeFindMixin({ service: 'todos' })
47-
// todosMixin.
4847
interface TodosComponent {
4948
todos: []
5049
todosServiceName: string

0 commit comments

Comments
 (0)