Skip to content

Commit

Permalink
Rename the variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Mar 10, 2024
1 parent cd9ee69 commit b6d30b6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public bool CanGenerate(AutoGenerateType type)
return canGenerate(timeTagGenerator);

case AutoGenerateType.AutoGenerateRomanisation:
var timeTagRomajiGenerator = getSelector<IReadOnlyDictionary<TimeTag, RomanisationGenerateResult>, RomanisationGeneratorConfig>();
return canGenerate(timeTagRomajiGenerator);
var romanisationGenerator = getSelector<IReadOnlyDictionary<TimeTag, RomanisationGenerateResult>, RomanisationGeneratorConfig>();
return canGenerate(romanisationGenerator);

case AutoGenerateType.AutoGenerateNotes:
var noteGenerator = getGenerator<Note[], NoteGeneratorConfig>();
Expand Down Expand Up @@ -96,8 +96,8 @@ public IDictionary<Lyric, LocalisableString> GetGeneratorNotSupportedLyrics(Auto
return getInvalidMessageFromGenerator(timeTagGenerator);

case AutoGenerateType.AutoGenerateRomanisation:
var timeTagRomajiGenerator = getSelector<IReadOnlyDictionary<TimeTag, RomanisationGenerateResult>, RomanisationGeneratorConfig>();
return getInvalidMessageFromGenerator(timeTagRomajiGenerator);
var romanisationGenerator = getSelector<IReadOnlyDictionary<TimeTag, RomanisationGenerateResult>, RomanisationGeneratorConfig>();
return getInvalidMessageFromGenerator(romanisationGenerator);

case AutoGenerateType.AutoGenerateNotes:
var noteGenerator = getGenerator<Note[], NoteGeneratorConfig>();
Expand Down Expand Up @@ -171,10 +171,10 @@ public void AutoGenerate(AutoGenerateType type)
break;

case AutoGenerateType.AutoGenerateRomanisation:
var timeTagRomajiGenerator = getSelector<IReadOnlyDictionary<TimeTag, RomanisationGenerateResult>, RomanisationGeneratorConfig>();
var romanisationGenerator = getSelector<IReadOnlyDictionary<TimeTag, RomanisationGenerateResult>, RomanisationGeneratorConfig>();
PerformOnSelection(lyric =>
{
var results = timeTagRomajiGenerator.Generate(lyric);
var results = romanisationGenerator.Generate(lyric);

foreach (var (key, value) in results)
{
Expand Down

0 comments on commit b6d30b6

Please sign in to comment.