Skip to content

Commit

Permalink
Update lib/src/source/hosted.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
  • Loading branch information
sigurdm and jonasfj authored Oct 6, 2022
1 parent f573b61 commit aedd523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/source/hosted.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class HostedSource extends CachedSource {
var pubspec = Pubspec.fromMap(pubspecData, cache.sources,
expectedName: ref.name, location: location);
final archiveSha256 = map['archive_sha256'];
if (archiveSha256 != null && archiveSha256 is! String) {
if (archiveSha256 is! String) {
throw FormatException('archive_sha256 must be a String');
}
final archiveUrl = map['archive_url'];
Expand Down

0 comments on commit aedd523

Please sign in to comment.