Minor lint tweaks.
XhmikosR
8 years ago
6 | 6 | * https://github.com/gruntjs/grunt-contrib-copy/blob/master/LICENSE-MIT |
7 | 7 | */ |
8 | 8 | |
9 | 'use strict'; | |
10 | ||
9 | 11 | module.exports = function(grunt) { |
10 | 'use strict'; | |
11 | ||
12 | 12 | var path = require('path'); |
13 | 13 | var fs = require('fs'); |
14 | 14 | var chalk = require('chalk'); |
22 | 22 | processContent: false, |
23 | 23 | processContentExclude: [], |
24 | 24 | timestamp: false, |
25 | mode: false, | |
25 | mode: false | |
26 | 26 | }); |
27 | 27 | |
28 | 28 | var copyOptions = { |
29 | 29 | encoding: options.encoding, |
30 | 30 | process: options.process || options.processContent, |
31 | noProcess: options.noProcess || options.processContentExclude, | |
31 | noProcess: options.noProcess || options.processContentExclude | |
32 | 32 | }; |
33 | 33 | |
34 | 34 | var isExpandedPair; |
35 | 35 | var dirs = {}; |
36 | 36 | var tally = { |
37 | 37 | dirs: 0, |
38 | files: 0, | |
38 | files: 0 | |
39 | 39 | }; |
40 | 40 | |
41 | 41 | this.files.forEach(function(filePair) { |
46 | 46 | var dest = unixifyPath(filePair.dest); |
47 | 47 | |
48 | 48 | if (detectDestType(dest) === 'directory') { |
49 | dest = (isExpandedPair) ? dest : path.join(dest, src); | |
49 | dest = isExpandedPair ? dest : path.join(dest, src); | |
50 | 50 | } |
51 | 51 | |
52 | 52 | if (grunt.file.isDir(src)) { |