Skip to content

refactor: improve file condition and add prefix check in file handling #25

Open
ysicing wants to merge 1 commit intogo-clog:mainfrom
quicklyon:main
Open

refactor: improve file condition and add prefix check in file handling #25
ysicing wants to merge 1 commit intogo-clog:mainfrom
quicklyon:main

Conversation

@ysicing
Copy link
Copy Markdown

@ysicing ysicing commented Dec 18, 2023

fixed #24

- In `file.go`, the condition `if !fi.IsDir()` was changed to `if fi != nil && !fi.IsDir()`
- The check `strings.HasPrefix(filepath.Base(path), filepath.Base(l.filename))` was added to the same if statement in `file.go`

Signed-off-by: ysicing <i@ysicing.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Panic triggered when running multiple replica containers

1 participant