Skip to content

Commit

Permalink
Don't return Void
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Schrenk committed Dec 2, 2023
1 parent 2e516bb commit f2109ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Swift/NightShift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ struct NightShift {
case sunrise(enabled: Bool, strength: Float)
}

static func setMode(value: Int) -> Void {
static func setMode(value: Int) {
let client = CBBlueLightClient()
client.setMode(Int32(value))
}

static func enable() -> Void {
static func enable() {
let client = CBBlueLightClient()
client.setEnabled(true)
}

static func disable() -> Void {
static func disable() {
let client = CBBlueLightClient()
client.setEnabled(false)
}

static func setStrength(value: Float) -> Void {
static func setStrength(value: Float) {
let client = CBBlueLightClient()
client.setStrength(value, commit: false)
}
Expand Down Expand Up @@ -55,7 +55,7 @@ struct NightShift {
return (from, to)
}

static func setSchedule(from: LocalTime, to: LocalTime) -> Void {
static func setSchedule(from: LocalTime, to: LocalTime) {
let client = CBBlueLightClient()

let schedule = Schedule(
Expand Down

0 comments on commit f2109ca

Please sign in to comment.