Return instead of branch

This commit is contained in:
Noam Preil 2020-06-27 21:39:39 -04:00
parent 38d2c5cdf1
commit ffca1569d1
No known key found for this signature in database
GPG Key ID: FC347E7C85BE8238

View File

@ -2162,7 +2162,8 @@ fn analyzeExport(self: *Module, scope: *Scope, src: usize, symbol_name: []const
.{symbol_name}, .{symbol_name},
)); ));
new_export.status = .failed; new_export.status = .failed;
} else { return;
}
self.bin_file.updateDeclExports(self, exported_decl, de_gop.kv.value) catch |err| switch (err) { self.bin_file.updateDeclExports(self, exported_decl, de_gop.kv.value) catch |err| switch (err) {
error.OutOfMemory => return error.OutOfMemory, error.OutOfMemory => return error.OutOfMemory,
else => { else => {
@ -2176,7 +2177,6 @@ fn analyzeExport(self: *Module, scope: *Scope, src: usize, symbol_name: []const
new_export.status = .failed_retryable; new_export.status = .failed_retryable;
}, },
}; };
}
} }
fn addNewInstArgs( fn addNewInstArgs(