Skip to content

Commit

Permalink
Fix bug in isCodexSourceFile
Browse files Browse the repository at this point in the history
  • Loading branch information
twavv committed Feb 28, 2021
1 parent 2e14f08 commit 93ddc75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/codex/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ func initConfig(dirname string) (*Config, error) {
}

func isCodexSourceFile(file os.FileInfo) bool {
return !file.IsDir() && filepath.Ext(file.Name()) == "ipynb"
ext := filepath.Ext(file.Name())
return !file.IsDir() && ext == ".ipynb"
}

0 comments on commit 93ddc75

Please sign in to comment.