Skip to content

Commit 139cbde

Browse files
authored
DracoLoader: remove extra redundant code (#27308)
* fix onError load * onError * LinearSRGBColorSpace instead of undefined * default onError = () => {}; call onError to cleanup code; * dracoloader: remove redundant catch
1 parent 4a1a1c8 commit 139cbde

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/jsm/loaders/DRACOLoader.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,7 @@ class DRACOLoader extends Loader {
157157
} );
158158

159159
} )
160-
.then( ( message ) => this._createGeometry( message.geometry ) )
161-
.catch( ( error ) => {
162-
163-
throw new Error( error );
164-
165-
} );
160+
.then( ( message ) => this._createGeometry( message.geometry ) );
166161

167162
// Remove task from the task list.
168163
// Note: replaced '.finally()' with '.catch().then()' block - iOS 11 support (#19416)

0 commit comments

Comments
 (0)