Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: apply trailing comma linting suggestions #73

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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