Skip to content

Commit d9fe353

Browse files
committed
[minor] Update style from previous commit
1 parent e92c1e4 commit d9fe353

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/vows/console.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ var eyes = require('eyes').inspector({ stream: null, styles: false });
22

33
// Stylize a string
44
this.stylize = function stylize(str, style) {
5-
if (module.exports.nocolor)
6-
return str;
5+
if (module.exports.nocolor) {
6+
return str;
7+
}
78

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

9091
this.inspect = function inspect(val) {
91-
if (module.exports.nocolor)
92-
return eyes(val);
92+
if (module.exports.nocolor) {
93+
return eyes(val);
94+
}
95+
9396
return '\033[1m' + eyes(val) + '\033[22m';
9497
};
9598

0 commit comments

Comments
 (0)