Skip to content

Commit 70078cf

Browse files
matej21claude
andcommitted
refactor: remove unnecessary optional chain in resource processor
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9982846 commit 70078cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/resource-processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class ResourceProcessor {
3838
}
3939
const configPath = path.join(worker.options.dir, 'wrangler.jsonc')
4040
const existingConfig = jsoncParser.parse((await tryReadFile(configPath)) || '{}') as Config
41-
const { bindings, dir, deleteDurableObjectsOnRemoval, ...workerConfig } = worker?.options ?? {}
41+
const { bindings, dir, deleteDurableObjectsOnRemoval, ...workerConfig } = worker.options
4242

4343
let config: Config = {
4444
...workerConfig,

0 commit comments

Comments
 (0)