From a75d9108072b66846170d08d826b2f1c876c9a7a Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 29 Nov 2023 17:46:03 -0700 Subject: [PATCH] Leif/docc fix (#40) * Fix docc GitHub action * After fix only run docc action on release --- .github/workflows/docc.yml | 2 +- Sources/AppState/Application/Types/Application+State.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml index c6ebf99..da8b6bb 100644 --- a/.github/workflows/docc.yml +++ b/.github/workflows/docc.yml @@ -1,5 +1,5 @@ name: docc -'on': +on: release: types: [released] permissions: diff --git a/Sources/AppState/Application/Types/Application+State.swift b/Sources/AppState/Application/Types/Application+State.swift index 5ab6fd4..a8dcdbf 100644 --- a/Sources/AppState/Application/Types/Application+State.swift +++ b/Sources/AppState/Application/Types/Application+State.swift @@ -59,9 +59,9 @@ extension Application { public var description: String { switch type { - case .state: "State<\(Value.self)>(\(value)) (\(scope.key))" - case .stored: "StoredState<\(Value.self)>(\(value)) (\(scope.key))" - case .sync: "SyncState<\(Value.self)>(\(value)) (\(scope.key))" + case .state: return "State<\(Value.self)>(\(value)) (\(scope.key))" + case .stored: return "StoredState<\(Value.self)>(\(value)) (\(scope.key))" + case .sync: return "SyncState<\(Value.self)>(\(value)) (\(scope.key))" } } }