Resharper gives a warning value assigned is not used in any execution path
private string FindMyId(string user, string defId) =>
defId = string.IsNullOrEmpty(defId) ? "defaultvalue" : defId;
I created above method to check if a value is empty and assign a default value to it anf return value in the same variable.It works functionaly. But it gives a message from resharper.