Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 26, 2024
1 parent 940909f commit 971df6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dict/stardict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,8 @@ static void findCorrespondingFiles( string const & ifo, string & idx, string & d
{
string base( ifo, 0, ifo.size() - 3 );

auto ret = Utils::Fs::anyExistingFile( { base + "idx", base + "idx.gz", base + "idx.dz", base + "IDX", base + "IDX.GZ", base + "IDX.DZ" } );
auto ret = Utils::Fs::anyExistingFile(
{ base + "idx", base + "idx.gz", base + "idx.dz", base + "IDX", base + "IDX.GZ", base + "IDX.DZ" } );
if ( !ret ) {
throw exNoIdxFile( ifo );
}
Expand All @@ -1668,7 +1669,8 @@ static void findCorrespondingFiles( string const & ifo, string & idx, string & d
throw exNoDictFile( ifo );
}

ret = Utils::Fs::anyExistingFile( { base + "syn", base + "syn.gz", base + "syn.dz", base + "SYN", base + "SYN.GZ", base + "SYN.DZ" } );
ret = Utils::Fs::anyExistingFile(
{ base + "syn", base + "syn.gz", base + "syn.dz", base + "SYN", base + "SYN.GZ", base + "SYN.DZ" } );

if ( !ret ) {
syn.clear();
Expand Down

0 comments on commit 971df6a

Please sign in to comment.