Skip to content

Commit

Permalink
Fix warnings about extraneous whitespace on @Availability. (#481)
Browse files Browse the repository at this point in the history
The build is generating warnings about extra space after
`@availability` and before the `(`.

rdar://133952407
  • Loading branch information
al45tair authored Aug 15, 2024
1 parent a76104d commit 79f5ae3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/TSCUtility/Netrc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extension AuthorizationProviding {
/// Container of parsed netrc connection settings
// FIXME: deprecate 2/2022, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
@available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
public struct Netrc {
/// Representation of `machine` connection settings & `default` connection settings.
/// If `default` connection settings present, they will be last element.
Expand Down Expand Up @@ -97,12 +97,12 @@ public struct Netrc {

// deprecated 9/2021
@available(*, deprecated)
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
@available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
extension Netrc: AuthorizationProviding {}

// FIXME: deprecate 2/2022, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
@available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
public extension Netrc {
enum Error: Swift.Error {
case invalidFilePath
Expand Down Expand Up @@ -142,7 +142,7 @@ public extension Netrc {

// FIXME: deprecate 2/2022, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
@available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
extension Netrc.Error: CustomNSError {
public var errorUserInfo: [String : Any] {
return [NSLocalizedDescriptionKey: "\(self)"]
Expand All @@ -151,7 +151,7 @@ extension Netrc.Error: CustomNSError {

// FIXME: deprecate 2/2022, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
@available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
fileprivate enum RegexUtil {
@frozen fileprivate enum Token: String, CaseIterable {
case machine, login, password, account, macdef, `default`
Expand Down

0 comments on commit 79f5ae3

Please sign in to comment.