@@ -139,8 +139,7 @@ namespace plugify {
139139 return {};
140140 }
141141 auto result = SafeCall<void >(" OnUpdate" , module .GetName (), [&] {
142- module .GetLanguageModule ()->OnUpdate (deltaTime);
143- return Result<void >{};
142+ return module .GetLanguageModule ()->OnUpdate (deltaTime);
144143 });
145144 _extensionLifecycle->OnUpdate (module , deltaTime);
146145 return result;
@@ -151,8 +150,7 @@ namespace plugify {
151150
152151 if (auto * languageModule = module .GetLanguageModule ()) {
153152 result = SafeCall<void >(" Shutdown" , module .GetName (), [&] {
154- languageModule->Shutdown ();
155- return Result<void >{};
153+ return languageModule->Shutdown ();
156154 });
157155 module .SetLanguageModule (nullptr );
158156 }
@@ -210,8 +208,7 @@ namespace plugify {
210208 return {};
211209 }
212210 auto result = SafeCall<void >(" OnPluginStart" , plugin.GetName (), [&] {
213- plugin.GetLanguageModule ()->OnPluginStart (plugin);
214- return Result<void >{};
211+ return plugin.GetLanguageModule ()->OnPluginStart (plugin);
215212 });
216213 _extensionLifecycle->OnStart (plugin);
217214 return result;
@@ -223,8 +220,7 @@ namespace plugify {
223220 return {};
224221 }
225222 auto result = SafeCall<void >(" OnPluginEnd" , plugin.GetName (), [&] {
226- plugin.GetLanguageModule ()->OnPluginEnd (plugin);
227- return Result<void >{};
223+ return plugin.GetLanguageModule ()->OnPluginEnd (plugin);
228224 });
229225 _extensionLifecycle->OnEnd (plugin);
230226 return result;
@@ -236,8 +232,7 @@ namespace plugify {
236232 return {};
237233 }
238234 auto result = SafeCall<void >(" OnPluginUpdate" , plugin.GetName (), [&] {
239- plugin.GetLanguageModule ()->OnPluginUpdate (plugin, deltaTime);
240- return Result<void >{};
235+ return plugin.GetLanguageModule ()->OnPluginUpdate (plugin, deltaTime);
241236 });
242237 _extensionLifecycle->OnUpdate (plugin, deltaTime);
243238 return result;
@@ -260,8 +255,7 @@ namespace plugify {
260255 return {};
261256 }
262257 auto result = SafeCall<void >(" OnMethodExport" , module .GetName (), [&] {
263- module .GetLanguageModule ()->OnMethodExport (plugin);
264- return Result<void >{};
258+ return module .GetLanguageModule ()->OnMethodExport (plugin);
265259 });
266260 // _lifecycle->OnExport(module, plugin);
267261 return result;
0 commit comments