Return instead of branch
This commit is contained in:
parent
38d2c5cdf1
commit
ffca1569d1
@ -2162,7 +2162,8 @@ fn analyzeExport(self: *Module, scope: *Scope, src: usize, symbol_name: []const
|
||||
.{symbol_name},
|
||||
));
|
||||
new_export.status = .failed;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
self.bin_file.updateDeclExports(self, exported_decl, de_gop.kv.value) catch |err| switch (err) {
|
||||
error.OutOfMemory => return error.OutOfMemory,
|
||||
else => {
|
||||
@ -2177,7 +2178,6 @@ fn analyzeExport(self: *Module, scope: *Scope, src: usize, symbol_name: []const
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
fn addNewInstArgs(
|
||||
self: *Module,
|
||||
|
Loading…
x
Reference in New Issue
Block a user