Some cleanups found by clang's analyzer
This commit is contained in:
@@ -25,7 +25,7 @@ namespace chaiscript
|
||||
template<typename T>
|
||||
T* throw_if_null(T *t)
|
||||
{
|
||||
if (t) return t;
|
||||
if (t) { return t; }
|
||||
throw std::runtime_error("Attempted to dereference null Boxed_Value");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user