Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymmarkov committed Sep 15, 2016
1 parent 3f85e5f commit 84ca961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0
4 changes: 2 additions & 2 deletions Source/Calculators/WaveCalculator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public struct WaveCalculator {
return AcousticWave.speed / wavelength
}

public static func wavelength(frequency frequency: Double) throws -> Double {
public static func wavelength(frequency: Double) throws -> Double {
guard PitchCalculator.isValidFrequency(frequency) else {
throw PitchError.invalidFrequency
}

return AcousticWave.speed / frequency
}

public static func wavelength(period period: Double) throws -> Double {
public static func wavelength(period: Double) throws -> Double {
guard isValidPeriod(period) else {
throw PitchError.invalidPeriod
}
Expand Down

0 comments on commit 84ca961

Please sign in to comment.