Skip to content

Commit

Permalink
style: apply trailing comma linting suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 8, 2023
1 parent 458e446 commit e1c5a2f
Show file tree
Hide file tree
Showing 11 changed files with 233 additions and 233 deletions.
2 changes: 1 addition & 1 deletion example/coaps_readproperty.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final Map<Uri, PskCredentials> _pskCredentialsStore = {
Uri(host: 'californium.eclipseprojects.io', scheme: 'coaps'): PskCredentials(
identity: Uint8List.fromList('Client_identity'.codeUnits),
preSharedKey: Uint8List.fromList('secretPSK'.codeUnits),
)
),
};

PskCredentials? _pskCredentialsCallback(
Expand Down
2 changes: 1 addition & 1 deletion example/complex_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const thingDescriptionJson = '''
''';

final Map<String, BasicCredentials> basicCredentials = {
'urn:test': BasicCredentials('username', 'password')
'urn:test': BasicCredentials('username', 'password'),
};

Future<BasicCredentials?> basicCredentialsCallback(
Expand Down
2 changes: 1 addition & 1 deletion example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import 'package:dart_wot/dart_wot.dart';

final Map<String, BasicCredentials> basicCredentials = {
'urn:test': BasicCredentials('rw', 'readwrite')
'urn:test': BasicCredentials('rw', 'readwrite'),
};

Future<BasicCredentials?> basicCredentialsCallback(
Expand Down
2 changes: 1 addition & 1 deletion example/http_basic_authentication.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const thingDescriptionJson = '''
final basicCredentials = BasicCredentials('username', 'password');

final Map<String, BasicCredentials> basicCredentialsMap = {
'urn:test': basicCredentials
'urn:test': basicCredentials,
};

Future<BasicCredentials?> basicCredentialsCallback(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/binding_coap/coap_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ extension OperationTypeExtension on OperationType {
OperationType.subscribeevent,
OperationType.unsubscribeevent,
OperationType.observeproperty,
OperationType.unobserveproperty
OperationType.unobserveproperty,
].contains(this)) {
return CoapSubprotocol.observe;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/content_serdes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ContentSerdes {

final Set<String> _offeredMediaTypes = {
'application/json',
'application/cbor'
'application/cbor',
};

/// Parses a [String]-based [mediaType] and adds it to the set of
Expand Down
2 changes: 1 addition & 1 deletion lib/src/definitions/extensions/json_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import '../version_info.dart';
const _validTdContextValues = [
'https://www.w3.org/2019/wot/td/v1',
'https://www.w3.org/2022/wot/td/v1.1',
'http://www.w3.org/ns/td'
'http://www.w3.org/ns/td',
];

/// Extension for parsing fields of JSON objects.
Expand Down
Loading

0 comments on commit e1c5a2f

Please sign in to comment.