Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Dec 28, 2024
1 parent 80d0901 commit dadb9c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/tiled/lib/src/objects/tiled_object.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ class TiledObject {

bool get isRectangle => rectangle;

factory TiledObject.parse(
Parser parser) {
factory TiledObject.parse(Parser parser) {
final x = parser.getDouble('x', defaults: 0);
final y = parser.getDouble('y', defaults: 0);
final height = parser.getDouble('height', defaults: 0);
Expand Down Expand Up @@ -137,7 +136,8 @@ class TiledObject {
final templatePath = parser.getStringOrNull('template');
final templateProvider = templatePath == null
? null
: parser.templateProviders?.firstWhere((e) => e.canProvide(templatePath));
: parser.templateProviders
?.firstWhere((e) => e.canProvide(templatePath));
final template = templateProvider == null
? null
: Template.parse(
Expand Down

0 comments on commit dadb9c1

Please sign in to comment.