From 8f308668d0edda0f2fee4390d061c160551df65c Mon Sep 17 00:00:00 2001 From: Sugita Akira Date: Sun, 1 Sep 2024 14:10:39 -0700 Subject: [PATCH] fix missing returns --- OpenUtau.Core/DiffSinger/DiffSingerBasePhonemizer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenUtau.Core/DiffSinger/DiffSingerBasePhonemizer.cs b/OpenUtau.Core/DiffSinger/DiffSingerBasePhonemizer.cs index 5c8eff207..132212db4 100644 --- a/OpenUtau.Core/DiffSinger/DiffSingerBasePhonemizer.cs +++ b/OpenUtau.Core/DiffSinger/DiffSingerBasePhonemizer.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -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();