| Index: packages/barback/lib/src/asset/asset_id.dart
|
| diff --git a/packages/barback/lib/src/asset/asset_id.dart b/packages/barback/lib/src/asset/asset_id.dart
|
| index adb2247ac150d145d0d2837b58a02abd42a5e44d..ee6228006a5fcef6dded114735630013872a38d5 100644
|
| --- a/packages/barback/lib/src/asset/asset_id.dart
|
| +++ b/packages/barback/lib/src/asset/asset_id.dart
|
| @@ -30,8 +30,7 @@ class AssetId implements Comparable<AssetId> {
|
| /// The [path] will be normalized: any backslashes will be replaced with
|
| /// forward slashes (regardless of host OS) and "." and ".." will be removed
|
| /// where possible.
|
| - AssetId(this.package, String path)
|
| - : path = _normalizePath(path);
|
| + AssetId(this.package, String path) : path = _normalizePath(path);
|
|
|
| /// Parses an [AssetId] string of the form "package|path/to/asset.txt".
|
| ///
|
| @@ -50,8 +49,7 @@ class AssetId implements Comparable<AssetId> {
|
| }
|
|
|
| if (parts[1].isEmpty) {
|
| - throw new FormatException(
|
| - 'Cannot have empty path in "$description".');
|
| + throw new FormatException('Cannot have empty path in "$description".');
|
| }
|
|
|
| return new AssetId(parts[0], parts[1]);
|
| @@ -69,9 +67,7 @@ class AssetId implements Comparable<AssetId> {
|
|
|
| /// Returns `true` of [other] is an [AssetId] with the same package and path.
|
| operator ==(other) =>
|
| - other is AssetId &&
|
| - package == other.package &&
|
| - path == other.path;
|
| + other is AssetId && package == other.package && path == other.path;
|
|
|
| int get hashCode => package.hashCode ^ path.hashCode;
|
|
|
| @@ -108,4 +104,4 @@ String _normalizePath(String path) {
|
|
|
| // Collapse "." and "..".
|
| return pathos.posix.normalize(path);
|
| -}
|
| +}
|
|
|