Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Nov 10, 2023
1 parent 447b9ff commit 12ccebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "4f18b42c-503e-5345-9536-bb0f25fc7038"
license = "MIT"
authors = ["Felipe Noronha <[email protected]>"]
repo = "https://github.com/JuliaFinance/BusinessDays.jl.git"
version = "0.9.22"
version = "0.9.23-dev"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
8 changes: 4 additions & 4 deletions src/calendars/us.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ United States Government Bond calendar. See <https://www.sifma.org/resources/gen
"""
struct USGovernmentBond <: HolidayCalendar end

function isholiday(::USSettlement , dt::Dates.Date)
function isholiday(::USSettlement, dt::Dates.Date)

yy = Dates.year(dt)
mm = Dates.month(dt)
Expand Down Expand Up @@ -66,7 +66,7 @@ function isholiday(::USSettlement , dt::Dates.Date)
return false
end

function isholiday(::USNYSE , dt::Dates.Date)
function isholiday(::USNYSE, dt::Dates.Date)

yy = Dates.year(dt)
mm = Dates.month(dt)
Expand Down Expand Up @@ -129,7 +129,7 @@ function isholiday(::USNYSE , dt::Dates.Date)
dt == Dates.Date(2004,6,11)
||
# Sep 11th
yy == 2001 && mm == 9 && ( 11 <= dd && dd <= 14)
yy == 2001 && mm == 9 && (11 <= dd && dd <= 14)
||
# President Nixon's funeral
dt == Dates.Date(1994,4,27)
Expand Down Expand Up @@ -182,7 +182,7 @@ function isholiday(::USNYSE , dt::Dates.Date)
return false
end

function isholiday(::USGovernmentBond , dt::Dates.Date)
function isholiday(::USGovernmentBond, dt::Dates.Date)

yy = Dates.year(dt)
mm = Dates.month(dt)
Expand Down

0 comments on commit 12ccebf

Please sign in to comment.