New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] web: `get_file` and CPU time exceeded #24442

Merged
merged 1 commit into from Apr 26, 2018
Jump to file or symbol
Failed to load files and symbols.
+6 −2
Diff settings

Always

Just for now

@@ -232,8 +232,12 @@ function get_file(options) {
if (options.error) {
var body = this.contentDocument.body;
var nodes = body.children.length === 0 ? body.childNodes : body.children;
var node = nodes[1] || nodes[0];
options.error(JSON.parse(node.textContent));
options.error({
message: nodes.length > 1 ? nodes[1].textContent : '',
data: {
title: nodes.length > 0 ? nodes[0].textContent : '',
},
});
}
} finally {
complete();
ProTip! Use n and p to navigate between commits in a pull request.