aboutsummaryrefslogtreecommitdiff
path: root/grunt
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-12-16 21:26:29 -0800
committerChris Rebert <[email protected]>2015-12-16 21:26:29 -0800
commit701513969d56c320d00a5fb1d5e3e305d761fbca (patch)
treef5b1e5bde4b212f6354dad0c0277d93245b47a2f /grunt
parent0cd0e66632131fc12b1c40f3ff0c6111dae9d2ee (diff)
downloadbootstrap-701513969d56c320d00a5fb1d5e3e305d761fbca.tar.xz
bootstrap-701513969d56c320d00a5fb1d5e3e305d761fbca.zip
grunt/change-version.js: Remove extra parens around function literals because Hound
[ci skip]
Diffstat (limited to 'grunt')
-rwxr-xr-xgrunt/change-version.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/grunt/change-version.js b/grunt/change-version.js
index dea04cea4..1016d1d7e 100755
--- a/grunt/change-version.js
+++ b/grunt/change-version.js
@@ -55,18 +55,18 @@ function walkAsync(directory, excludedDirectories, fileCallback, errback) {
function replaceRecursively(directory, excludedDirectories, allowedExtensions, original, replacement) {
original = new RegExp(RegExp.quote(original), 'g');
replacement = RegExp.quoteReplacement(replacement);
- var updateFile = !DRY_RUN ? (function (filepath) {
- if (allowedExtensions.has(path.parse(filepath).ext)) {
- sed('-i', original, replacement, filepath);
- }
- }) : (function (filepath) {
- if (allowedExtensions.has(path.parse(filepath).ext)) {
- console.log('FILE: ' + filepath);
- }
- else {
- console.log('EXCLUDED:' + filepath);
- }
- });
+ var updateFile = !DRY_RUN ? function (filepath) {
+ if (allowedExtensions.has(path.parse(filepath).ext)) {
+ sed('-i', original, replacement, filepath);
+ }
+ } : function (filepath) {
+ if (allowedExtensions.has(path.parse(filepath).ext)) {
+ console.log('FILE: ' + filepath);
+ }
+ else {
+ console.log('EXCLUDED:' + filepath);
+ }
+ };
walkAsync(directory, excludedDirectories, updateFile, function (err) {
console.error('ERROR while traversing directory!:');
console.error(err);