Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed May 31, 2021
1 parent ab73316 commit 38a998b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DotNetStac.Test/Extensions/EoExtensionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ public void CreateEoExtension()
item.Links.Add(StacLink.CreateSelfLink(new Uri("http://cool-sat.com/catalog/CS3-20160503_132130_04/CS3-20160503_132130_04.json")));
item.SetCollection("CS3", new Uri("http://cool-sat.com/catalog.json"));

var asset = new StacAsset(item, new Uri("relative-path/to/analytic.tif", UriKind.Relative), null, "4-Band Analytic", null);
var asset = new StacAsset(item, new Uri("relative-path/to/analytic.tif", UriKind.Relative), null, "4-Band Analytic", null);

asset.EoExtension().CloudCover = 0;

item.Assets.Add("analytic",asset);
item.Assets.Add("analytic", asset);
item.Assets.Add("thumbnail", StacAsset.CreateThumbnailAsset(item, new Uri("http://cool-sat.com/catalog/CS3-20160503_132130_04/thumbnail.png"), null, "Thumbnail"));

// item.BoundingBoxes = new double[4] { -122.59750209, 37.48803556, -122.2880486, 37.613537207 };
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetStac/StacAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public StacAsset(StacAsset source, IStacObject stacObject)
href = source.href;
if (source.Roles != null)
Roles = new SortedSet<string>(source.Roles);
else
else
Roles = new SortedSet<string>();
title = source.title;
type = source.type;
Expand Down

0 comments on commit 38a998b

Please sign in to comment.