Browse Source

Fix a lint error

Brandon Jones 5 years ago
parent
commit
14de6bc258
2 changed files with 3 additions and 3 deletions
  1. 1 1
      examples/jsm/loaders/GLTFLoader.js
  2. 2 2
      src/loaders/TextureLoader.js

+ 1 - 1
examples/jsm/loaders/GLTFLoader.js

@@ -1482,7 +1482,7 @@ var GLTFLoader = ( function () {
 
 
 		// Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the
 		// Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the
 		// expensive work of uploading a texture to the GPU off the main thread.
 		// expensive work of uploading a texture to the GPU off the main thread.
-		if (typeof createImageBitmap !== 'undefined') {
+		if ( typeof createImageBitmap !== 'undefined' ) {
 			this.textureLoader.setImageLoader( new ImageBitmapLoader( this.options.manager ) );
 			this.textureLoader.setImageLoader( new ImageBitmapLoader( this.options.manager ) );
 		}
 		}
 
 

+ 2 - 2
src/loaders/TextureLoader.js

@@ -7,7 +7,7 @@ import { ImageLoader } from './ImageLoader.js';
 import { Texture } from '../textures/Texture.js';
 import { Texture } from '../textures/Texture.js';
 import { Loader } from './Loader.js';
 import { Loader } from './Loader.js';
 
 
-function TextureLoader( manager, imageLoader ) {
+function TextureLoader( manager ) {
 
 
 	Loader.call( this, manager );
 	Loader.call( this, manager );
 
 
@@ -23,7 +23,7 @@ TextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 
 		const texture = new Texture();
 		const texture = new Texture();
 
 
-		if ( !this.imageLoader ) {
+		if ( ! this.imageLoader ) {
 
 
 			this.imageLoader = new ImageLoader( this.manager );
 			this.imageLoader = new ImageLoader( this.manager );