File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
lib/jblond/Diff/Renderer/Text Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,7 @@ public function render(): string
49
49
if (!isset ($ this ->options ['cliColor ' ])) {
50
50
return $ this ->output ();
51
51
}
52
- if (isset ($ this ->options ['cliColor ' ]) && $ this ->options ['cliColor ' ] === true ) {
53
- return $ this ->output ();
54
- }
55
- throw new InvalidArgumentException ('Invalid cliColor option ' );
52
+ return $ this ->output ();
56
53
}
57
54
58
55
@@ -63,7 +60,7 @@ public function render(): string
63
60
*/
64
61
private function colorizeString ($ string , $ color = '' ): string
65
62
{
66
- if (isset ($ this ->options ['cliColor ' ]) && $ this -> options [ ' cliColor ' ] === true ) {
63
+ if (isset ($ this ->options ['cliColor ' ])) {
67
64
return $ this ->colors ->getColoredString ($ string , $ color );
68
65
}
69
66
return $ string ;
You can’t perform that action at this time.
0 commit comments