Skip to content

Commit 017c5eb

Browse files
committed
Fix misc issue with steam gifts in trades
1 parent 9e57558 commit 017c5eb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ArchiSteamFarm/ArchiWebHandler.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ private static uint GetAppIDFromMarketHashName(string hashName) {
6969
}
7070

7171
uint appID;
72-
if (uint.TryParse(hashName.Substring(0, index), out appID)) {
73-
return appID;
74-
}
75-
76-
Logging.LogNullError(nameof(appID));
77-
return 0;
72+
return uint.TryParse(hashName.Substring(0, index), out appID) ? appID : 0;
7873
}
7974

8075
private static Steam.Item.EType GetItemType(string name) {

0 commit comments

Comments
 (0)