File tree Expand file tree Collapse file tree
packages/appkit/src/plugins/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,15 +243,11 @@ export class FilesPlugin extends Plugin implements ToolProvider {
243243 telemetry : config . telemetry ,
244244 customContentTypes : mergedConfig . customContentTypes ,
245245 } ) ;
246- }
247246
248- for ( const volumeKey of this . volumeKeys ) {
249- Object . assign ( this . tools , this . _defineVolumeTools ( volumeKey ) ) ;
250- }
247+ Object . assign ( this . tools , this . _defineVolumeTools ( key ) ) ;
251248
252- // Warn at startup for volumes without an explicit policy
253- for ( const key of this . volumeKeys ) {
254- if ( ! volumes [ key ] . policy ) {
249+ // Warn at startup for volumes without an explicit policy
250+ if ( ! volumeCfg . policy ) {
255251 logger . warn (
256252 'Volume "%s" has no explicit policy — defaulting to publicRead(). ' +
257253 "Set a policy in files({ volumes: { %s: { policy: ... } } }) to silence this warning." ,
You can’t perform that action at this time.
0 commit comments