Remove unneeded returns

This commit is contained in:
Brandon Fish
2019-04-29 23:45:38 -05:00
parent 78c84d803b
commit 8acf9edf67
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ pub fn _system(_ctx: &mut Ctx, _one: i32) -> c_int {
debug!("emscripten::_system"); debug!("emscripten::_system");
// TODO: May need to change this Em impl to a working version // TODO: May need to change this Em impl to a working version
eprintln!("Can't call external programs"); eprintln!("Can't call external programs");
return EAGAIN; EAGAIN
} }
pub fn _popen(_ctx: &mut Ctx, _one: i32, _two: i32) -> c_int { pub fn _popen(_ctx: &mut Ctx, _one: i32, _two: i32) -> c_int {

View File

@ -345,7 +345,7 @@ pub fn _strftime(
// pad for null? // pad for null?
let bytes = result_str.chars().count(); let bytes = result_str.chars().count();
if bytes as u32 > maxsize { if bytes as u32 > maxsize {
return 0; 0
} else { } else {
// write output string // write output string
for (i, c) in result_str.chars().enumerate() { for (i, c) in result_str.chars().enumerate() {