Simplify if statement
This commit is contained in:
+1
-2
@@ -110,8 +110,7 @@ std::string Display::new_frame( Framebuffer &f )
|
|||||||
|
|
||||||
x += cell->width;
|
x += cell->width;
|
||||||
|
|
||||||
if ( cell->contents.empty() ) {
|
if ( !cell->contents.empty() ) {
|
||||||
} else {
|
|
||||||
cursor_x += cell->width;
|
cursor_x += cell->width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user