mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-12 18:33:43 +00:00
refactor(*): Split repository name into a separate variable to make it more readable
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user