Skip to content

Commit 388adea

Browse files
committed
fix lint errors
1 parent 29c5f77 commit 388adea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/lib/asset_copy.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const asset_copier = () => {
3939
p,
4040
dest,
4141
options
42-
).on(copy.events.COPY_FILE_COMPLETE, (copyOperation) => {
42+
).on(copy.events.COPY_FILE_COMPLETE, () => {
4343
if (options.debug) {
4444
console.log(`Moved ${p} to ${dest}`);
4545
}
@@ -121,7 +121,7 @@ const asset_copier = () => {
121121
if (options.watch) {
122122

123123
// watch global structures, such as _data/* and _meta/
124-
const globalSources = [assetDirectories.source.data, assetDirectories.source.meta]
124+
const globalSources = [assetDirectories.source.data, assetDirectories.source.meta];
125125
const globalPaths = globalSources.map(globalSource => path.join(
126126
basePath,
127127
globalSource,
@@ -154,14 +154,13 @@ const asset_copier = () => {
154154
globalWatcher.on('addDir', (p) => {
155155
patternlab.events.emit('patternlab-global-change', {
156156
file: p
157-
})
157+
});
158158
})
159159
.on('add', (p) => {
160160
patternlab.events.emit('patternlab-global-change', {
161161
file: p
162162
});
163163
}).on('change', (p) => {
164-
console.log(145, 'global change watch')
165164
patternlab.events.emit('patternlab-global-change', {
166165
file: p
167166
});

0 commit comments

Comments
 (0)