Skip to content

Commit

Permalink
refactor code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wendux committed Feb 27, 2020
1 parent 2929f7a commit 36ba724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dio/lib/src/entry/dio_for_native.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class DioForNative with DioMixin implements Dio {
StreamSubscription subscription;
Future asyncWrite;
var closed = false;
void _closeAndDelete() async {
Future _closeAndDelete() async {
if (!closed) {
closed = true;
await asyncWrite;
Expand Down
4 changes: 2 additions & 2 deletions dio/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import 'dart:convert';

/// A regular expression that matches strings that are composed entirely of
/// ASCII-compatible characters.
final RegExp _ASCII_ONLY = RegExp(r'^[\x00-\x7F]+$');
final RegExp _asciiOnly = RegExp(r'^[\x00-\x7F]+$');

/// Returns whether [string] is composed entirely of ASCII-compatible
/// characters.
bool isPlainAscii(String string) => _ASCII_ONLY.hasMatch(string);
bool isPlainAscii(String string) => _asciiOnly.hasMatch(string);

/// Pipes all data and errors from [stream] into [sink]. Completes [Future] once
/// [stream] is done. Unlike [store], [sink] remains open after [stream] is
Expand Down

0 comments on commit 36ba724

Please sign in to comment.