Skip to content

Commit 25ba555

Browse files
style: format new permissions files
1 parent 0af408c commit 25ba555

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

packages/spark_web/lib/src/permissions.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ class PermissionName {
7878

7979
@override
8080
bool operator ==(Object other) =>
81-
identical(this, other) ||
82-
other is PermissionName && other.value == value;
81+
identical(this, other) || other is PermissionName && other.value == value;
8382

8483
@override
8584
int get hashCode => value.hashCode;
@@ -115,7 +114,7 @@ class PushPermissionDescriptor extends PermissionDescriptor {
115114
final bool userVisibleOnly;
116115

117116
const PushPermissionDescriptor({this.userVisibleOnly = false})
118-
: super(name: PermissionName.push);
117+
: super(name: PermissionName.push);
119118
}
120119

121120
// ---------------------------------------------------------------------------
@@ -130,7 +129,7 @@ class MidiPermissionDescriptor extends PermissionDescriptor {
130129
final bool sysex;
131130

132131
const MidiPermissionDescriptor({this.sysex = false})
133-
: super(name: const PermissionName('midi'));
132+
: super(name: const PermissionName('midi'));
134133
}
135134

136135
// ---------------------------------------------------------------------------

packages/spark_web/lib/src/server/permissions.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ class ServerPermissions implements iface.Permissions {
3535
@override
3636
Future<iface.PermissionStatus> query(
3737
iface.PermissionDescriptor descriptor,
38-
) async =>
39-
ServerPermissionStatus(descriptor.name);
38+
) async => ServerPermissionStatus(descriptor.name);
4039
}

0 commit comments

Comments
 (0)