Skip to content

Commit 75aab41

Browse files
committed
fix: unreachable code warning
1 parent 982bb63 commit 75aab41

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

include/dynlibutils/vthook.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ class CVTHook : public CMemory
116116
if constexpr (std::is_void_v<R>)
117117
{
118118
GetOrigin<Function_t>()(args...);
119-
120119
return;
121120
}
122-
123-
return GetOrigin<Function_t>()(args...);
121+
else
122+
{
123+
return GetOrigin<Function_t>()(args...);
124+
}
124125
}
125126

126127
protected: // Implementation methods.

0 commit comments

Comments
 (0)