[PR #6621] refactor: simplify if-else to ternary expressions #12007

Open
opened 2026-02-16 18:16:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6621

State: open
Merged: No


Summary

Simplify if-else blocks to ternary expressions.

Changes

  • packages/opencode/src/util/locale.ts - todayTimeOrDateTime function
  • packages/opencode/src/provider/provider.ts - getModel in azure providers (2 instances)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6621 **State:** open **Merged:** No --- ## Summary Simplify if-else blocks to ternary expressions. ## Changes - `packages/opencode/src/util/locale.ts` - `todayTimeOrDateTime` function - `packages/opencode/src/provider/provider.ts` - `getModel` in azure providers (2 instances)
yindo added the pull-request label 2026-02-16 18:16:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12007