Skip to content

Commit

Permalink
Update directory.jule
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav authored Oct 20, 2023
1 parent a752ed2 commit 90cf0ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/directory.jule
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ fn make_name(mut s: str): str {
}

fn append_package(package: str) {
let (mut dirents, err) = Directory.read(package)
if err != FsError.Ok {
let mut dirents = Directory.read(package) else {
workflow_failed("package did not readed: " + package)
ret // Avoid derror.
}

let package_table_name = make_name(package)
Expand Down Expand Up @@ -121,8 +121,7 @@ fn append_package(package: str) {

fn create_directory_md() {
const MD_PATH = "./DIRECTORY.md"
let err = File.write(MD_PATH, ([]byte)(TABLE), 0o666)
if err != FsError.Ok {
File.write(MD_PATH, ([]byte)(TABLE), 0o666) else {
workflow_failed("a problem occurs when creating " + MD_PATH)
}
}
Expand Down

0 comments on commit 90cf0ab

Please sign in to comment.