chore: improve readability
Co-authored-by: flow <thiagodonato300@gmail.com>
This commit is contained in:
		@@ -33,12 +33,12 @@ class ModrinthAPI : public NetworkModAPI {
 | 
			
		||||
        QStringList l;
 | 
			
		||||
        for (auto loader : {Forge, Fabric, Quilt})
 | 
			
		||||
        {
 | 
			
		||||
            if (types & loader || types == Unspecified)
 | 
			
		||||
            if ((types & loader) || types == Unspecified)
 | 
			
		||||
            {
 | 
			
		||||
                l << ModAPI::getModLoaderString(loader);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        if (types & Quilt && ~types & Fabric)  // Add Fabric if Quilt is in use, if Fabric isn't already there
 | 
			
		||||
        if ((types & Quilt) && (~types & Fabric))  // Add Fabric if Quilt is in use, if Fabric isn't already there
 | 
			
		||||
            l << ModAPI::getModLoaderString(Fabric);
 | 
			
		||||
        return l;
 | 
			
		||||
    }
 | 
			
		||||
@@ -98,7 +98,7 @@ class ModrinthAPI : public NetworkModAPI {
 | 
			
		||||
 | 
			
		||||
    inline auto validateModLoaders(ModLoaderTypes loaders) const -> bool
 | 
			
		||||
    {
 | 
			
		||||
        return loaders == Unspecified || loaders & (Forge | Fabric | Quilt);
 | 
			
		||||
        return (loaders == Unspecified) || (loaders & (Forge | Fabric | Quilt));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user