Skip to content

Commit

Permalink
Normalize Whitespace: Removed unnecessary checks (#3017)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Aug 2, 2021
1 parent 679539e commit 63edf14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions plugins/normalize-whitespace/prism-normalize-whitespace.js
@@ -1,6 +1,6 @@
(function () {

if (typeof Prism === 'undefined' || typeof document === 'undefined') {
if (typeof Prism === 'undefined') {
return;
}

Expand Down Expand Up @@ -124,11 +124,6 @@
module.exports = NormalizeWhitespace;
}

// Exit if prism is not loaded
if (typeof Prism === 'undefined') {
return;
}

Prism.plugins.NormalizeWhitespace = new NormalizeWhitespace({
'remove-trailing': true,
'remove-indent': true,
Expand Down

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

0 comments on commit 63edf14

Please sign in to comment.