mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replaced ternary operators with if statements (#346)
Instances of the ternary operator were replaced with if statements to make the code base more consistent.
This commit is contained in:
committed by
Peter Johnson
parent
c8e44256ef
commit
7efab4c43a
@@ -52,7 +52,9 @@ inline Log::Log() {}
|
||||
inline llvm::raw_ostream& Log::Get(TLogLevel level) {
|
||||
oss << "- " << NowTime();
|
||||
oss << " " << ToString(level) << ": ";
|
||||
oss << std::string(level > logDEBUG ? level - logDEBUG : 0, '\t');
|
||||
if (level > logDEBUG) {
|
||||
oss << std::string(level - logDEBUG, '\t');
|
||||
}
|
||||
return oss;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user