Skip to content

Commit 85990a6

Browse files
committed
Code formatting in syntax-highlight helper
1 parent c1dbba9 commit 85990a6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tasks/build.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ grunt.registerHelper("syntax-highlight", function( options, callback ) {
118118
}
119119

120120
var html = options.file ? grunt.file.read( options.file ) : options.cmd.stdout,
121-
$ = cheerio.load( html ),
122-
highlight = $("pre > code");
121+
$ = cheerio.load( html ),
122+
highlight = $("pre > code");
123123
try {
124124
highlight.each( function( index, el ) {
125125
var $t = $(this),
@@ -132,14 +132,12 @@ grunt.registerHelper("syntax-highlight", function( options, callback ) {
132132
});
133133
$t.parent().replaceWith( $(highlighted).removeAttr("id") );
134134
});
135-
}
136-
catch ( excp ) {
135+
} catch ( excp ) {
137136
callback( excp );
138137
return;
139138
}
140139

141140
callback( null, $.html() );
142-
143141
});
144142

145143
};

0 commit comments

Comments
 (0)