Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings about extraneous whitespace on @availability. #481

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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