Fix Codacy warnings. No functional change.

This commit is contained in:
Wilson Snyder
2021-07-07 19:42:49 -04:00
parent 36599133bf
commit 3aa6332f25
3 changed files with 28 additions and 18 deletions
+3 -3
View File
@@ -133,10 +133,10 @@ void V3GraphVertex::v3errorEnd(std::ostringstream& str) const {
nsstr << endl;
nsstr << "-vertex: " << this << endl;
}
if (!fileline()) {
V3Error::v3errorEnd(nsstr);
if (FileLine* const flp = fileline()) {
flp->v3errorEnd(nsstr);
} else {
fileline()->v3errorEnd(nsstr);
V3Error::v3errorEnd(nsstr);
}
}
void V3GraphVertex::v3errorEndFatal(std::ostringstream& str) const {