Skip to content

Commit

Permalink
Remove unreachable code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Samsel committed Feb 11, 2019
1 parent 83b114a commit aadc343
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/copyformatting/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,7 @@
documentElement = CKEDITOR.document.getDocumentElement(),
isApplied;

if ( !isFromKeystroke && cmd.state !== CKEDITOR.TRISTATE_ON ) {
return;

} else if ( isFromKeystroke && !copyFormatting.styles ) {
if ( isFromKeystroke && !copyFormatting.styles ) {
plugin._putScreenReaderMessage( editor, 'failed' );
plugin._detachPasteKeystrokeHandler( editor );
return false;
Expand Down

0 comments on commit aadc343

Please sign in to comment.