Skip to content

Commit

Permalink
Update sheet_remote_config.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
dungngminh authored Dec 16, 2024
1 parent 1aaebc1 commit 5949d27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/src/sheet_remote_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ class SheetRemoteConfig {
}
final payload = response.body;
if (payload.isEmpty) return;
if (!payload.startsWith('"')) {
throw SheetRemoteConfigException(
message: 'Invalid remote config', stackTrace: StackTrace.current);
}
if (!payload.startsWith('"')) throw FormatException();
// "key","value"
final keyValues = payload.split('\n').map((e) {
final entries = e.split(',');
Expand Down

0 comments on commit 5949d27

Please sign in to comment.