Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Oct 4, 2021
1 parent 2514f76 commit 2197d14
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
8 changes: 0 additions & 8 deletions plugins/file-highlight/prism-file-highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,9 @@
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
/** @type {LoadResult} */
var result = {
source: src,
text: '',
failed: false
};

if (xhr.status < 400 && xhr.responseText) {
success(xhr.responseText);
} else {
result.failed = true;
if (xhr.status >= 400) {
error(FAILURE_MESSAGE(xhr.status, xhr.statusText));
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/file-highlight/prism-file-highlight.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -1732,17 +1732,9 @@ Prism.languages.js = Prism.languages.javascript;
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
/** @type {LoadResult} */
var result = {
source: src,
text: '',
failed: false
};

if (xhr.status < 400 && xhr.responseText) {
success(xhr.responseText);
} else {
result.failed = true;
if (xhr.status >= 400) {
error(FAILURE_MESSAGE(xhr.status, xhr.statusText));
} else {
Expand Down

0 comments on commit 2197d14

Please sign in to comment.