Skip to content

Commit

Permalink
Use workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdm committed Sep 5, 2024
1 parent a1ed6eb commit cafab17
Show file tree
Hide file tree
Showing 33 changed files with 51 additions and 7,009 deletions.
2 changes: 1 addition & 1 deletion app/lib/fake/backend/fake_email_sender.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FakeEmailSender implements EmailSender {
sentMessages.add(message);
if (_outputDir != null) {
final uuid = message.localMessageId ?? Ulid().toCanonical();
final file = File(p.join(_outputDir!, '$uuid.json'));
final file = File(p.join(_outputDir, '$uuid.json'));
await file.parent.create(recursive: true);
await file.writeAsString(json.encode(message.toJson()));
}
Expand Down
4 changes: 2 additions & 2 deletions app/lib/frontend/dom/dom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1040,15 +1040,15 @@ class _StringElement extends _StringNode {
assert(_children == null ||
_children is _StringNode ||
(_children is Iterable<Node> &&
(_children as Iterable<Node>).every((c) => c is _StringNode)));
(_children).every((c) => c is _StringNode)));
}

@override
void writeHtml(StringSink sink) {
sink.write('<');
sink.write(_tag);
if (_attributes != null) {
for (final e in _attributes!.entries) {
for (final e in _attributes.entries) {
sink.write(' ');
sink.write(e.key);
sink.write('="');
Expand Down
6 changes: 3 additions & 3 deletions app/lib/package/model_properties.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Pubspec {
return (minDartVersion != null &&
minDartVersion.value.compareTo(dartSdkVersion) > 0) ||
(_minFlutterSdkVersion != null &&
_minFlutterSdkVersion!.value.compareTo(flutterSdkVersion) > 0);
_minFlutterSdkVersion.value.compareTo(flutterSdkVersion) > 0);
}

/// True if either the Dart or the Flutter SDK constraint is higher than the
Expand All @@ -144,8 +144,8 @@ class Pubspec {
late final _dartSdkConstraint = _inner.environment?['sdk'];
late final _flutterSdkConstraint = _inner.environment?['flutter'];
late final _hasDartSdkConstraint = _dartSdkConstraint != null &&
!_dartSdkConstraint!.isAny &&
!_dartSdkConstraint!.isEmpty;
!_dartSdkConstraint.isAny &&
!_dartSdkConstraint.isEmpty;

SdkConstraintStatus get _sdkConstraintStatus =>
SdkConstraintStatus.fromSdkVersion(_dartSdkConstraint, name);
Expand Down
4 changes: 2 additions & 2 deletions app/lib/package/name_tracker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class NameTracker {
await for (final p in _db!.query<Package>().run()) {
data.add(TrackedPackage.fromPackage(p));
}
await for (final p in _db!.query<ModeratedPackage>().run()) {
await for (final p in _db.query<ModeratedPackage>().run()) {
data.addModeratedName(p.name!);
}
_data = data;
Expand All @@ -185,7 +185,7 @@ class NameTracker {
_data.add(TrackedPackage.fromPackage(p));
}

final moderatedPkgQuery = _db!.query<ModeratedPackage>()
final moderatedPkgQuery = _db.query<ModeratedPackage>()
..order('moderated')
..filter('moderated >', ts);

Expand Down
2 changes: 1 addition & 1 deletion app/lib/tool/utils/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _AuthenticatedClient extends http.BaseClient {
}
final currentCookies = request.headers['cookie'];
final providedCookies =
_cookieProvider == null ? null : await _cookieProvider!();
_cookieProvider == null ? null : await _cookieProvider();

final sessionId = await _sessionIdProvider();
request.headers['cookie'] = [
Expand Down
Loading

0 comments on commit cafab17

Please sign in to comment.