Skip to content

Commit

Permalink
header.jl: fix some indentation (cosmetic)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored Dec 4, 2020
1 parent 1b63f2a commit ddca329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/header.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ function check_header(hdr::Header)
hdr.type == :directory && hdr.size != 0 &&
err("directory with non-zero size")
hdr.type != :directory && endswith(hdr.path, "/") &&
err("non-directory path ending with '/'")
err("non-directory path ending with '/'")
hdr.type != :directory && (hdr.path == "." || endswith(hdr.path, "/.")) &&
err("non-directory path ending with '.' component")
err("non-directory path ending with '.' component")
hdr.size < 0 &&
err("negative file size")
err("negative file size")
isempty(errors) && return

# contruct error message
Expand Down

0 comments on commit ddca329

Please sign in to comment.