Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieb9 committed Apr 19, 2022
1 parent d66f62a commit 49485e2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/Tesla/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -254,22 +254,22 @@ sub update_data_files {
my $data_differs;

if (scalar keys %$new_data != scalar keys %$existing_data) {
$data_differs = 1;
}
$data_differs = 1;
}

if (! $data_differs) {
for my $key (keys %$new_data) {
if (! exists $existing_data->{$key}) {
$data_differs = 1;
last;
}
}
if (! exists $existing_data->{$key}) {
$data_differs = 1;
last;
}
}
for my $key (keys %$existing_data) {
if (! exists $new_data->{$key}) {
$data_differs = 1;
last;
}
}
if (! exists $new_data->{$key}) {
$data_differs = 1;
last;
}
}
}

if ($data_differs) {
Expand Down

0 comments on commit 49485e2

Please sign in to comment.