* Initial work

* Fix CIs

* Fix warnings

* Update .travis.yml

* Update dockerfiles

* Update libraries to .NET 5.0

* Misc

* Remove workaround for #1812

* Update cc.sh

* CI updates

* CI updates

* Update .travis.yml
This commit is contained in:
Łukasz Domeradzki
2020-11-10 23:22:57 +01:00
committed by GitHub
parent 9a248858a5
commit 35f4651ed6
26 changed files with 115 additions and 176 deletions

View File

@@ -166,7 +166,7 @@ namespace ArchiSteamFarm {
Dictionary<(ulong ClassID, ulong InstanceID), Steam.InventoryResponse.Description> descriptions = new Dictionary<(ulong ClassID, ulong InstanceID), Steam.InventoryResponse.Description>();
foreach (Steam.InventoryResponse.Description description in response.Content.Descriptions.Where(description => description != null)) {
foreach (Steam.InventoryResponse.Description description in response.Content.Descriptions) {
if (description.ClassID == 0) {
throw new NotSupportedException(string.Format(Strings.ErrorObjectIsNull, nameof(description.ClassID)));
}
@@ -180,7 +180,7 @@ namespace ArchiSteamFarm {
descriptions[key] = description;
}
foreach (Steam.Asset asset in response.Content.Assets.Where(asset => asset != null)) {
foreach (Steam.Asset asset in response.Content.Assets) {
if (!descriptions.TryGetValue((asset.ClassID, asset.InstanceID), out Steam.InventoryResponse.Description? description) || assetIDs.Contains(asset.AssetID)) {
continue;
}