Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Dec 3, 2024
1 parent ed9b322 commit edf872b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gulp_plugin.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export class GulpPlugin extends Transform
@_transformer = transformer

# Transforms input and produces output.
_transform: (chunk, encoding, done) ->
_transform: (file, encoding, done) ->
try
log "Minifying: #{chunk.relative}" unless @_silent
chunk.contents = Buffer.from await @_transformer.transform(chunk.path), encoding
done null, chunk
log "Minifying: #{file.relative}" unless @_silent
file.contents = Buffer.from await @_transformer.transform(file.path), encoding
done null, file

catch error
failure = if error instanceof Error then error else String error
done new PluginError "@cedx/php-minifier", failure, fileName: chunk.path
done new PluginError "@cedx/php-minifier", failure, fileName: file.path

0 comments on commit edf872b

Please sign in to comment.