Skip to content

Commit

Permalink
CHORE: lint 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
devMinseok committed Jul 22, 2024
1 parent 2bcdfd5 commit c679928
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Projects/App/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct MohanyangApp: App {
WindowGroup {
AppView(store: self.appDelegate.store)
}
.onChange(of: self.scenePhase) { oldValue, newValue in
.onChange(of: self.scenePhase) { _, newValue in
self.appDelegate.store.send(.didChangeScenePhase(newValue))
}
}
Expand Down
2 changes: 1 addition & 1 deletion Projects/Feature/Feature/Sources/AppCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public struct AppCore {
completionHandler()
return .none
}
return .run { send in
return .run { _ in
switch pushNotiContent {
case .test:
break
Expand Down
5 changes: 4 additions & 1 deletion Projects/Feature/Feature/Sources/AppDelegateCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public struct AppDelegateCore {
Reduce(self.core)
}

private func core(_ state: inout State, _ action: Action) -> EffectOf<Self> {
private func core(

Check warning on line 41 in Projects/Feature/Feature/Sources/AppDelegateCore.swift

View workflow job for this annotation

GitHub Actions / Run Swiftlint

Function should have complexity 10 or less; currently complexity is 11 (cyclomatic_complexity)
_ state: inout State,
_ action: Action
) -> EffectOf<Self> {
switch action {
case .didFinishLaunching:
UIApplication.shared.applicationIconBadgeNumber = 0
Expand Down
2 changes: 1 addition & 1 deletion Projects/Feature/HomeFeature/Sources/HomeCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ComposableArchitecture

extension HomeCore {
public init() {
let reducer = Reduce<State, Action> { state, action in
let reducer = Reduce<State, Action> { _, action in
switch action {
case .onAppear:
return .none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ComposableArchitecture

extension OnboardingCore {
public init() {
let reducer = Reduce<State, Action> { state, action in
let reducer = Reduce<State, Action> { _, action in
switch action {
case .onAppear:
return .none
Expand Down

0 comments on commit c679928

Please sign in to comment.