Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gitar] Cleaning up stale flag: is-dark-mode-enabled with value true #131

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

gitar-bot[bot]
Copy link

@gitar-bot gitar-bot bot commented Jan 22, 2025

Gitar
This automated PR permanently enables the is-dark-mode-enabled feature flag.

Summary of Changes

Gitar found and removed uses of the is-dark-mode-enabled feature flag across 8 files. Some of these files include:

  • launchdarkly/dart/sample.dart
  • launchdarkly/java/Sample.java
  • launchdarkly/kotlin/sample.kt
  • launchdarkly/node/sample.js
  • launchdarkly/ruby/sample.rb

Gitar performed deep cleanup and code optimizations triggered by the feature flag removal in 7 of these files.

Code Cleanup Details
  • launchdarkly/dart/sample.dart

    • Replaced Feature Flag Usage
    • Cleaned up code (2 times)
      • Deleted the unused variable flagValue
      • Propagated the value true to uses of the local variable flagValue
  • launchdarkly/go/sample.go

    • Replaced Feature Flag Usage
    • Cleaned up code (9 times)
      • Deleted the unused variable darkModeEnabled
      • Deleted the unused variable err
      • Propagated the value nil to uses of the variable err (2 times)
      • Propagated the value true to uses of the variable darkModeEnabled (2 times)
      • Simplified control flow (2 times)
      • Simplified boolean expressions
  • launchdarkly/java/Sample.java

    • Replaced Feature Flag Usage
    • Cleaned up code (5 times)
      • Deleted the unused local variable client
      • Deleted the unused local variable context
      • Deleted the unused local variable flagValue
      • Propagated the value true to uses of the variable flagValue
      • Simplified control flow
  • launchdarkly/java/SampleDeep.java

    • Replaced Feature Flag Usage
    • Cleaned up code (7 times)
      • Deleted the unused local variable flagValue
      • Deleted the unused private function forceDarkModeFromLocalConfig
      • Deleted the unused private function isDarkModeEnabled
      • Propagated the value true to calls of the function isDarkModeEnabled
      • Propagated the value true to uses of the variable flagValue
      • Simplified control flow
      • Simplified boolean expressions
  • launchdarkly/kotlin/sample.kt

    • Replaced Feature Flag Usage
    • Cleaned up code (6 times)
      • Deleted the unused variable darkModeEnabled
      • Propagated the value true to uses of the variable darkModeEnabled (2 times)
      • Simplified control flow
      • Simplified boolean expressions (2 times)
  • launchdarkly/node/sample.js

    • Replaced Feature Flag Usage
    • Cleaned up code (2 times)
      • Deleted the unused variable context
      • Simplified control flow
  • launchdarkly/react/sample.tsx

    • Replaced Feature Flag Usage
    • Cleaned up code (5 times)
      • Deleted the unused variable isDarkModeEnabled
      • Propagated the value true to uses of the variable isDarkModeEnabled (2 times)
      • Simplified control flow (2 times)
  • launchdarkly/ruby/sample.rb

    • Replaced Feature Flag Usage
Details

Triggered via #105 (comment) by @ketkarameya


This automated PR was generated by Gitar. View docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants