Skip to content

Commit 4d45f96

Browse files
author
Maiko
committed
[JA CVVC] remove unnecessary codes
1 parent b87751c commit 4d45f96

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

OpenUtau.Plugin.Builtin/JapaneseCVVCPhonemizer.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ static JapaneseCVVCPhonemizer() {
103103
private bool checkOtoUntilHit(string[] input, Note note, out UOto oto) {
104104
oto = default;
105105
var attr = note.phonemeAttributes?.FirstOrDefault(attr => attr.index == 0) ?? default;
106-
var attr1 = note.phonemeAttributes?.FirstOrDefault(attr => attr.index == 1) ?? default;
107106

108107
var otos = new List<UOto>();
109108
foreach (string test in input) {
@@ -119,11 +118,9 @@ private bool checkOtoUntilHit(string[] input, Note note, out UOto oto) {
119118
if (otos.Any(oto => (oto.Color ?? string.Empty) == color)) {
120119
oto = otos.Find(oto => (oto.Color ?? string.Empty) == color);
121120
return true;
122-
} else if (otos.Any(oto => (color ?? string.Empty) == color)) {
123-
oto = otos.Find(oto => (color ?? string.Empty) == color);
124-
return true;
125121
} else {
126-
return false;
122+
oto = otos.First();
123+
return true;
127124
}
128125
}
129126
return false;

0 commit comments

Comments
 (0)