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 and xiaoyifang committed Jul 16, 2024
1 parent 4dbb1c9 commit bcb10e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/indexedzip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ bool IndexedZip::loadFile( uint32_t offset, vector< char > & data )
zip.getFilenames( zipFileNames );
GD_DPRINTF( "Failed to load header" );
string filename;
if( zip.getCurrentFile() < zipFileNames.size() )
{
filename= zipFileNames.at( zip.getCurrentFile() );
if ( zip.getCurrentFile() < zipFileNames.size() ) {
filename = zipFileNames.at( zip.getCurrentFile() );
}

qDebug() << "Current failed zip file:" << QString::fromStdString( fileName );
return false;
}
Expand Down

0 comments on commit bcb10e0

Please sign in to comment.