Skip to content

Commit

Permalink
Format prefer_collection_literals
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Dec 30, 2023
1 parent 141452e commit 1e3170c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions lib/component/eh/eh_headers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import 'package:violet/log/log.dart';
import 'package:violet/network/wrapper.dart' as http;

class EHSession {
static Map<String, String> exEhashs = Map<String, String>();
static Map<String, String> ehEhashs = Map<String, String>();
static Map<String, bool> ehEhashCouldNotFound = Map<String, bool>();
static Map<String, bool> exEhashCouldNotFound = Map<String, bool>();
static Map<String, bool> ehashLock = Map<String, bool>();
static Map<String, String> exEhashs = <String, String>{};
static Map<String, String> ehEhashs = <String, String>{};
static Map<String, bool> ehEhashCouldNotFound = <String, bool>{};
static Map<String, bool> exEhashCouldNotFound = <String, bool>{};
static Map<String, bool> ehashLock = <String, bool>{};
static EHSession? tryLogin(String id, String pass) {
return null;
}
Expand Down Expand Up @@ -194,7 +194,7 @@ class EHSession {
ehashLock[id] = true;
}
String? ehash;
Map<String, String> ehashs = Map<String, String>();
Map<String, String> ehashs = <String, String>{};
switch (from) {
case 'e-hentai.org':
ehashs = ehEhashs;
Expand All @@ -204,7 +204,7 @@ class EHSession {
break;
default:
if (from == null) {
ehashs = Map<String, String>();
ehashs = <String, String>{};
ehashs.addAll(exEhashs);
ehashs.addAll(ehEhashs);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/component/proxy/proxy.myvipwebtools.com.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:http/http.dart' as http;

class ProxyHttpRequest {
String host = 'proxy.myvipwebtools.com';
Map<String, String> cookies = Map<String, String>();
Map<String, String> cookies = <String, String>{};

Future<String> getCSRF(String host) async {
var res = await http.get(
Expand Down

0 comments on commit 1e3170c

Please sign in to comment.