Skip to content

Commit 3ba65df

Browse files
committed
Enabled lints
1 parent 3a26def commit 3ba65df

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

pkgs/http/lib/src/base_request.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ abstract class BaseRequest {
170170
///
171171
/// Defaults to `default`.
172172
String? get cache => HttpCacheUtils.defaultType;
173-
}
173+
}

pkgs/http/lib/src/multipart_request.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ class MultipartRequest extends BaseRequest {
162162

163163
@override
164164
String? get cache {
165-
if(this._cache != null){
165+
if (this._cache != null) {
166166
return this._cache;
167-
}
168-
else return super.cache;
167+
} else
168+
return super.cache;
169169
}
170170

171171
String? _cache;
172-
set cache(String? cacheType){
172+
set cache(String? cacheType) {
173173
this._cache = cacheType!;
174174
}
175-
}
175+
}

pkgs/http/lib/src/request.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@ class Request extends BaseRequest {
184184

185185
@override
186186
String? get cache {
187-
if(this._cache != null){
187+
if (this._cache != null) {
188188
return this._cache;
189-
}
190-
else return super.cache;
189+
} else
190+
return super.cache;
191191
}
192192

193193
String? _cache;
194-
set cache(String? cacheType){
194+
set cache(String? cacheType) {
195195
this._cache = cacheType!;
196196
}
197197
}

pkgs/http/lib/src/streamed_request.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ class StreamedRequest extends BaseRequest {
5555

5656
@override
5757
String? get cache {
58-
if(this._cache != null){
58+
if (this._cache != null) {
5959
return this._cache;
60-
}
61-
else return super.cache;
60+
} else
61+
return super.cache;
6262
}
6363

6464
String? _cache;
65-
set cache(String? cacheType){
65+
set cache(String? cacheType) {
6666
this._cache = cacheType!;
6767
}
6868
}

pkgs/http/lib/src/utils.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ Stream<T> onDone<T>(Stream<T> stream, void Function() onDone) =>
7272
/// Caching utilities types for using cache for any http request.
7373
///
7474
/// For more references, check (Caching types)[https://developer.mozilla.org/en-US/docs/Web/API/Request/cache]
75-
mixin HttpCacheUtils{
75+
mixin HttpCacheUtils {
7676
static const String defaultType = "default";
7777
static const String reloadType = "reload";
7878
static const String noStoringType = "no-store";
7979
static const String noCachingType = "no-cache";
8080
static const String forceCachingType = "force-cache";
8181
static const String onlyIfCachedType = "only-if-cached";
82-
}
82+
}

0 commit comments

Comments
 (0)