Skip to content

Commit

Permalink
Fix a few style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Wevah committed Jul 13, 2022
1 parent daeec52 commit 1f18874
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ insert_final_newline = true
indent_style = tab
indent_size = 4
tab_width = 4

[*.yml]
indent_style = space
3 changes: 3 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
disabled_rules:
- switch_case_alignment
- nesting
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "IDNA",
targets: ["IDNA"]),
targets: ["IDNA"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -26,6 +26,6 @@ let package = Package(
swiftSettings: [.define("SWIFT_PACKAGE")]),
.testTarget(
name: "IDNATests",
dependencies: ["IDNA"]),
dependencies: ["IDNA"])
]
)
2 changes: 1 addition & 1 deletion Sources/IDNA/UTS46+Loading.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extension UTS46 {

switch header.version {
case 1:
break;
break
default:
if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
os_log("Unrecognized version found; assuming 1.", type: .debug)
Expand Down

0 comments on commit 1f18874

Please sign in to comment.