1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-09 16:24:42 +00:00

use type inference instead of conditional type

This commit is contained in:
George Kurelic 2022-02-22 13:03:01 -06:00 committed by GitHub
parent b50364edcf
commit 37517e1e16

View file

@ -182,7 +182,7 @@ class PolymodHandler
}
#end
public static function getAllMods():Array<#if polymod ModMetadata #else Dynamic #end> // this is shitty conditional but ModMetadata isn't imported on HTML5! And I'm too lazy to actually do it properly!
public static function getAllMods()
{
#if polymod
trace('Scanning the mods folder...');
@ -190,7 +190,7 @@ class PolymodHandler
trace('Found ${modMetadata.length} mods when scanning.');
return modMetadata;
#else
return [];
return new Array<Dynamic>();
#end
}