refactor(*): Split repository name into a separate variable to make it more readable

This commit is contained in:
Josh Creek
2021-08-29 23:41:36 +01:00
parent 85c8769631
commit 314cec2ac2
+2 -1
View File
@@ -65,7 +65,8 @@ namespace FileRepository
// break;
default:
throw new ArgumentException($"{Enum.GetName(typeof(RepositoryType), value: repositoryType)} is not a valid repository type.");
string repositoryName = Enum.GetName(typeof(RepositoryType), value: repositoryType);
throw new ArgumentException($"{repositoryName} is not a valid repository type.");
}
}
}