Skip to content

Commit

Permalink
fix missing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
stakira committed Sep 1, 2024
1 parent 347193c commit 8f30866
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OpenUtau.Core/DiffSinger/DiffSingerBasePhonemizer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -68,17 +68,17 @@ private bool _executeSetSinger(USinger singer) {
return false;
}
//Load language id if needed
if(dsConfig.use_lang_id){
if(dsConfig.languages == null){
if (dsConfig.use_lang_id) {
if (dsConfig.languages == null) {
Log.Error("\"languages\" field is not specified in dsconfig.yaml");
return;
return false;
}
var langIdPath = Path.Join(rootPath, dsConfig.languages);
try {
languageIds = DiffSingerUtils.LoadLanguageIds(langIdPath);
} catch (Exception e) {
Log.Error(e, $"failed to load language id from {langIdPath}");
return;
return false;
}
}
this.frameMs = dsConfig.frameMs();
Expand Down

0 comments on commit 8f30866

Please sign in to comment.