Replaced ternary operator with switch

This commit is contained in:
veysel mutlu 2021-09-10 21:18:02 +03:00
parent d20232db12
commit 79d81f531a

View File

@ -6,9 +6,12 @@
{ {
if (item != null) if (item != null)
{ {
item.PictureUri = azureStorageEnabled // https://www.linkedin.com/feed/update/urn:li:activity:6841055191211491328/
? picBaseUrl + item.PictureFileName item.PictureUri = azureStorageEnabled switch
: picBaseUrl.Replace("[0]", item.Id.ToString()); {
true => picBaseUrl + item.PictureFileName,
_ => picBaseUrl.Replace("[0]", item.Id.ToString())
};
} }
} }
} }