Replaced ternary operator with switch
This commit is contained in:
parent
d20232db12
commit
79d81f531a
@ -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())
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user