Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gruntjs/grunt-contrib-copy
Browse files Browse the repository at this point in the history
* 'master' of github.com:gruntjs/grunt-contrib-copy:
  Minor lint tweaks.
  • Loading branch information
shama committed Jan 30, 2016
2 parents 33363b4 + 6d74dc3 commit 1ecb72c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* https://github.com/gruntjs/grunt-contrib-copy/blob/master/LICENSE-MIT
*/

module.exports = function(grunt) {
'use strict';
'use strict';

module.exports = function(grunt) {
var path = require('path');
var fs = require('fs');
var chalk = require('chalk');
Expand All @@ -23,20 +23,20 @@ module.exports = function(grunt) {
processContent: false,
processContentExclude: [],
timestamp: false,
mode: false,
mode: false
});

var copyOptions = {
encoding: options.encoding,
process: options.process || options.processContent,
noProcess: options.noProcess || options.processContentExclude,
noProcess: options.noProcess || options.processContentExclude
};

var isExpandedPair;
var dirs = {};
var tally = {
dirs: 0,
files: 0,
files: 0
};

this.files.forEach(function(filePair) {
Expand All @@ -47,7 +47,7 @@ module.exports = function(grunt) {
var dest = unixifyPath(filePair.dest);

if (detectDestType(dest) === 'directory') {
dest = (isExpandedPair) ? dest : path.join(dest, src);
dest = isExpandedPair ? dest : path.join(dest, src);
}

if (grunt.file.isDir(src)) {
Expand Down

0 comments on commit 1ecb72c

Please sign in to comment.