mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-12 18:33:43 +00:00
refactor(*): Simplify getting the repository name to make it more readable
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Creek.FileRepository
|
|||||||
return new SqlRepository(config);
|
return new SqlRepository(config);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
string repositoryName = Enum.GetName(typeof(RepositoryType), value: repositoryType);
|
string repositoryName = repositoryType.ToString();
|
||||||
throw new ArgumentException($"{repositoryName} is not a valid repository type.");
|
throw new ArgumentException($"{repositoryName} is not a valid repository type.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user