Skip to content

Commit

Permalink
Remove unnecessary ! operators
Browse files Browse the repository at this point in the history
  • Loading branch information
ufrshubham committed May 15, 2024
1 parent ad19f50 commit bdad409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/flame/lib/src/components/overlay_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class OverlayRoute extends Route {
@override
Component build() {
if (_builder != null) {
game.overlays.addEntry(name, _builder!);
game.overlays.addEntry(name, _builder);
}
return Component();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/flame_tiled/lib/src/renderable_tile_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class RenderableTiledMap {
/// Renders each renderable layer in the same order specified by the Tiled map
void render(Canvas c) {
if (_backgroundPaint != null) {
c.drawPaint(_backgroundPaint!);
c.drawPaint(_backgroundPaint);
}

// Paint each layer in reverse order, because the last layers should be
Expand Down

0 comments on commit bdad409

Please sign in to comment.