mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 08:03:52 +09:00
Remove redundant type specs
This commit is contained in:
@ -344,7 +344,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
private AnimationLoopType parseAnimationLoopType(string value)
|
private AnimationLoopType parseAnimationLoopType(string value)
|
||||||
{
|
{
|
||||||
var parsed = Enum.Parse<AnimationLoopType>(value);
|
var parsed = Enum.Parse<AnimationLoopType>(value);
|
||||||
return Enum.IsDefined<AnimationLoopType>(parsed) ? parsed : AnimationLoopType.LoopForever;
|
return Enum.IsDefined(parsed) ? parsed : AnimationLoopType.LoopForever;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleVariables(string line)
|
private void handleVariables(string line)
|
||||||
|
@ -185,7 +185,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"playstyle")]
|
[JsonProperty(@"playstyle")]
|
||||||
private string[] playStyle
|
private string[] playStyle
|
||||||
{
|
{
|
||||||
set => PlayStyles = value?.Select(str => Enum.Parse<APIPlayStyle>(str, true)).Cast<APIPlayStyle>().ToArray();
|
set => PlayStyles = value?.Select(str => Enum.Parse<APIPlayStyle>(str, true)).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public APIPlayStyle[] PlayStyles;
|
public APIPlayStyle[] PlayStyles;
|
||||||
|
Reference in New Issue
Block a user