Removes rest of 'no-else-return' comments.
This commit is contained in:
		
							parent
							
								
									6265bb6038
								
							
						
					
					
						commit
						77b7b84d1e
					
				| @ -360,7 +360,10 @@ var FontFaceObject = (function FontFaceObjectClosure() { | ||||
|   } | ||||
|   FontFaceObject.prototype = { | ||||
|     createNativeFontFace: function FontFaceObject_createNativeFontFace() { | ||||
|       if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) { | ||||
|       if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('MOZCENTRAL')) { | ||||
|         throw new Error('Not implemented: createNativeFontFace'); | ||||
|       } | ||||
| 
 | ||||
|       if (!this.data) { | ||||
|         return null; | ||||
|       } | ||||
| @ -376,9 +379,6 @@ var FontFaceObject = (function FontFaceObjectClosure() { | ||||
|         this.options.fontRegistry.registerFont(this); | ||||
|       } | ||||
|       return nativeFontFace; | ||||
|       } else { // eslint-disable-line no-else-return
 | ||||
|         throw new Error('Not implemented: createNativeFontFace'); | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|     createFontFaceRule: function FontFaceObject_createFontFaceRule() { | ||||
|  | ||||
| @ -624,7 +624,8 @@ var PDFPageView = (function PDFPageViewClosure() { | ||||
|           onRenderContinue: function (cont) { }, | ||||
|           cancel: function () { }, | ||||
|         }; | ||||
|       } else { // eslint-disable-line no-else-return
 | ||||
|       } | ||||
| 
 | ||||
|       var cancelled = false; | ||||
|       var ensureNotCancelled = function () { | ||||
|         if (cancelled) { | ||||
| @ -660,7 +661,6 @@ var PDFPageView = (function PDFPageViewClosure() { | ||||
|           cancelled = true; | ||||
|         } | ||||
|       }; | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|     /** | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user