Skip to content

Commit a5a10f2

Browse files
committed
Add another deprecation warning
1 parent 9564837 commit a5a10f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/App/Core/Github.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ extension Github {
108108
return "https://api.github.com/repos/\(owner)/\(repository)/\(resource.rawValue)"
109109
}
110110
}
111-
111+
112+
@available(*, deprecated)
112113
static func fetch(client: Client, uri: URI, headers: [(String, String)] = []) async throws -> (content: String, etag: String?) {
113114
guard let token = Current.githubToken() else {
114115
throw Error.missingToken
@@ -170,7 +171,7 @@ extension Github {
170171

171172
guard response.status == .ok else { throw Error.requestFailed(response.status) }
172173
guard let body = response.body else { throw Github.Error.noBody }
173-
174+
174175
return try decoder.decode(T.self, from: body)
175176
}
176177

0 commit comments

Comments
 (0)