Skip to content

Commit 4962d20

Browse files
committed
code formatting
my opinionated IDE and lack of attention to detail have upset Nicolas Gallagher and that upsets me :). I hope I found them all!
1 parent 8fbb7a0 commit 4962d20

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ module.exports = function(css, options){
6969
*/
7070

7171
function error(msg) {
72-
if(options.silent === true){
72+
if (options.silent === true) {
7373
return false;
7474
}
75+
7576
var err = new Error(msg + ' near line ' + lineno + ':' + column);
7677
err.filename = options.source;
7778
err.line = lineno;
@@ -119,7 +120,7 @@ module.exports = function(css, options){
119120
whitespace();
120121
comments(rules);
121122
while (css.length && css.charAt(0) != '}' && (node = atrule() || rule())) {
122-
if(node !== false){
123+
if (node !== false) {
123124
rules.push(node);
124125
comments(rules);
125126
}
@@ -155,7 +156,7 @@ module.exports = function(css, options){
155156
function comments(rules) {
156157
var c;
157158
rules = rules || [];
158-
while (c = comment()){
159+
while (c = comment()) {
159160
if (c !== false) {
160161
rules.push(c);
161162
}
@@ -254,10 +255,10 @@ module.exports = function(css, options){
254255
// declarations
255256
var decl;
256257
while (decl = declaration()) {
257-
if(decl !== false){
258+
if (decl !== false) {
258259
decls.push(decl);
259260
comments(decls);
260-
}
261+
}
261262
}
262263

263264
if (!close()) return error("missing '}'");

0 commit comments

Comments
 (0)