Skip to content

Commit

Permalink
Update swiftlint (#55)
Browse files Browse the repository at this point in the history
* fix lint

* update swiftlint action

* fix arg
  • Loading branch information
xlc authored Aug 7, 2024
1 parent 5e67bce commit 0010257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check swift codestyle
uses: norio-nomura/action-swiftlint@3.2.1
uses: cirruslabs/swiftlint-action@v1
with:
args: lint --config .swiftlint.yml --strict
args: --config .swiftlint.yml --strict

test:
name: Build and Test
Expand Down
3 changes: 1 addition & 2 deletions Database/Sources/Database/RocksDB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ extension RocksDB {
}
let rest = data.dropFirst()
let first = data.first!
return first.withUnsafeBytes {
(bufferPtr: UnsafeRawBufferPointer) -> Result<R, Error> in
return first.withUnsafeBytes { (bufferPtr: UnsafeRawBufferPointer) -> Result<R, Error> in
guard let bufferAddress = bufferPtr.baseAddress else {
return .failure(.noData)
}
Expand Down

0 comments on commit 0010257

Please sign in to comment.