mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-20 09:46:14 +00:00
Fix Style Issue in Build (#76)
A couple of variables had conflicting names and the inner scope was shadowing the outer. Style checker was complaining. Deleted one inner definition and renamed another variable.
This commit is contained in:
parent
17d7dbd6f7
commit
b40094373b
@ -63,7 +63,7 @@ Tpm2ToolsVersion Tpm2ToolsVersionChecker::findTpm2ToolsVersion() {
|
||||
try {
|
||||
return kVersionMap.at(version);
|
||||
}
|
||||
catch (const out_of_range& oor) {
|
||||
catch (const out_of_range& outOfRange) {
|
||||
// If no version found, version is unsupported, throw exception
|
||||
stringstream ss;
|
||||
ss << "Unsupported Tpm2 Tools Version Detected: " << version;
|
||||
|
@ -86,7 +86,6 @@ namespace file_utils {
|
||||
stringstream ss;
|
||||
ifstream t(filename);
|
||||
if (!t.good()) {
|
||||
stringstream ss;
|
||||
ss << "Unable to open file: " << filename;
|
||||
throw HirsRuntimeException(ss.str(),
|
||||
"Utils.cpp::file_utils::fileToString");
|
||||
|
Loading…
x
Reference in New Issue
Block a user