Skip to content

Commit

Permalink
[minor] Update style from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Nov 25, 2011
1 parent e92c1e4 commit d9fe353
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/vows/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ var eyes = require('eyes').inspector({ stream: null, styles: false });

// Stylize a string
this.stylize = function stylize(str, style) {
if (module.exports.nocolor)
return str;
if (module.exports.nocolor) {
return str;
}

var styles = {
'bold' : [1, 22],
Expand Down Expand Up @@ -88,8 +89,10 @@ this.result = function (event) {
};

this.inspect = function inspect(val) {
if (module.exports.nocolor)
return eyes(val);
if (module.exports.nocolor) {
return eyes(val);
}

return '\033[1m' + eyes(val) + '\033[22m';
};

Expand Down

0 comments on commit d9fe353

Please sign in to comment.