From 481c081634596aeec848fe163131dd5a492a91af Mon Sep 17 00:00:00 2001 From: Leo Dion Date: Fri, 10 May 2024 16:39:47 -0400 Subject: [PATCH] fixing other issues --- Mintfile | 3 ++- Scripts/lint.sh | 1 + Sources/FeatherQuill/FeatureValue.swift | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mintfile b/Mintfile index c1dc548..44e3750 100644 --- a/Mintfile +++ b/Mintfile @@ -1,2 +1,3 @@ nicklockwood/SwiftFormat@0.53.5 -realm/SwiftLint@0.54.0 \ No newline at end of file +realm/SwiftLint@0.54.0 +peripheryapp/periphery@2.18.0 \ No newline at end of file diff --git a/Scripts/lint.sh b/Scripts/lint.sh index 31c3fa9..d30285e 100755 --- a/Scripts/lint.sh +++ b/Scripts/lint.sh @@ -38,6 +38,7 @@ if [ -z "$CI" ]; then $MINT_RUN swiftlint --fix fi +$MINT_RUN periphery scan $MINT_RUN swiftformat --lint $SWIFTFORMAT_OPTIONS . $MINT_RUN swiftlint lint $SWIFTLINT_OPTIONS diff --git a/Sources/FeatherQuill/FeatureValue.swift b/Sources/FeatherQuill/FeatureValue.swift index e948f89..1b554c2 100644 --- a/Sources/FeatherQuill/FeatureValue.swift +++ b/Sources/FeatherQuill/FeatureValue.swift @@ -36,7 +36,6 @@ public class FeatureValue { private let userDefaults: UserDefaults private let key: String - private let defaultValue: ValueType private let fullKey: String public var bindingValue: Binding { .init { @@ -68,7 +67,6 @@ ) { self.userDefaults = userDefaults self.key = key - self.defaultValue = defaultValue let initialValue: ValueType let fullKey = [ FeatureFlags.rootKey, self.key, FeatureFlags.valueKey