mirror of
https://github.com/FMS-Cat/condition.git
synced 2025-08-25 22:41:28 +02:00
size: trivial process.env.DEV
This commit is contained in:
@@ -101,7 +101,9 @@ export class ShaderPool<TUser> {
|
||||
const users = this.__programUsersMap.get( program )!;
|
||||
|
||||
if ( !users.has( user ) ) {
|
||||
throw new Error( 'Attempt to delete an user of the program but the specified user is not an owner' );
|
||||
if ( process.env.DEV ) {
|
||||
console.warn( 'Attempt to delete an user of the program but the specified user is not an owner' );
|
||||
}
|
||||
}
|
||||
users.delete( user );
|
||||
}
|
||||
|
Reference in New Issue
Block a user