fix minify on empty case creating incorrect syntax

This commit is contained in:
zawz 2021-06-29 15:34:53 +02:00
parent 40aee8e3cf
commit 0be14815fa

View file

@ -315,10 +315,12 @@ std::string case_block::generate(int ind, generate_context* ctx)
ret+="\n"; ret+="\n";
} }
// replace ;; from last case with ; // replace ;; from last case with \n
if(this->cases.size()>0 && opt_minify) if(this->cases.size()>0 && opt_minify)
{ {
ret.pop_back(); ret.pop_back();
ret.pop_back();
ret+='\n';
} }
// close case // close case