Skip to content

Commit 0facb78

Browse files
committed
refactor(examples): remove obsolete explicit typing
1 parent ee06909 commit 0facb78

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

example/example.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Future<BasicCredentials?> basicCredentialsCallback(
2323
}
2424

2525
Future<void> main(List<String> args) async {
26-
final CoapClientFactory coapClientFactory = CoapClientFactory();
27-
final HttpClientFactory httpClientFactory =
26+
final coapClientFactory = CoapClientFactory();
27+
final httpClientFactory =
2828
HttpClientFactory(basicCredentialsCallback: basicCredentialsCallback);
29-
final MqttClientFactory mqttClientFactory = MqttClientFactory();
29+
final mqttClientFactory = MqttClientFactory();
3030

3131
final servient = Servient(
3232
clientFactories: [

example/http_basic_authentication.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ Future<BasicCredentials?> basicCredentialsCallback(
6868
/// Illustrates the usage of both the basic and the automatic security scheme,
6969
/// with a server supporting basic authentication.
7070
Future<void> main(List<String> args) async {
71-
final HttpClientFactory httpClientFactory =
72-
HttpClientFactory(basicCredentialsCallback: basicCredentialsCallback);
71+
final httpClientFactory = HttpClientFactory(
72+
basicCredentialsCallback: basicCredentialsCallback,
73+
);
7374
final servient = Servient(
7475
clientFactories: [
7576
httpClientFactory,

0 commit comments

Comments
 (0)