Use shared before local
This commit is contained in:
@ -166,11 +166,8 @@ internal abstract class Person
|
||||
sexLine = "1 SEX U";
|
||||
else
|
||||
{
|
||||
string code;
|
||||
if (deathLine is null or not "1 DEAT Y")
|
||||
code = sexLine[6] is 'M' ? "05" : sexLine[6] is 'F' ? "04" : sexLine[6] is 'U' ? "02" : throw new NotImplementedException();
|
||||
else
|
||||
code = sexLine[6] is 'M' ? "15" : sexLine[6] is 'F' ? "14" : sexLine[6] is 'U' ? "03" : throw new NotImplementedException();
|
||||
int hours = IPersonBirthday.GetHour(deathLine is null or not "1 DEAT Y", sexLine[6]);
|
||||
string code = hours.ToString("00");
|
||||
if (directory.EndsWith("00"))
|
||||
directory = string.Concat(directory[..^2], code);
|
||||
else if (directory.EndsWith("01"))
|
||||
|
Reference in New Issue
Block a user