File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -299,8 +299,7 @@ __attribute__((noreturn)) static void error(const std::string & msg)
299299{
300300 if (errno)
301301 throw SysError (msg);
302- else
303- throw std::runtime_error (msg);
302+ throw std::runtime_error (msg);
304303}
305304
306305static void growFile (const FileContents & contents, size_t newSize)
@@ -895,11 +894,10 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsExecutable()
895894 startAddr = rdi (shdr.sh_addr );
896895 lastReplaced = i - 1 ;
897896 break ;
898- } else {
899- if (replacedSections.find (sectionName) == replacedSections.end ()) {
900- debug (" replacing section '%s' which is in the way\n " , sectionName.c_str ());
901- replaceSection (sectionName, rdi (shdr.sh_size ));
902- }
897+ }
898+ if (replacedSections.find (sectionName) == replacedSections.end ()) {
899+ debug (" replacing section '%s' which is in the way\n " , sectionName.c_str ());
900+ replaceSection (sectionName, rdi (shdr.sh_size ));
903901 }
904902 prevSection = sectionName;
905903 }
You can’t perform that action at this time.
0 commit comments