Skip to content

Commit

Permalink
=-
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Nov 21, 2024
1 parent 6318c3a commit 7ec20da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bundle/config/mutator/translate_paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ func (t *translateContext) translateNotebookPath(literal, localFullPath, localRe
for _, ext := range extensions {
literalWithExt := literal + ext
localRelPathWithExt := filepath.ToSlash(localRelPath + ext)
// TODO: inline the err call.
_, err := fs.Stat(t.b.SyncRoot, localRelPathWithExt)
if err == nil {
if _, err := fs.Stat(t.b.SyncRoot, localRelPathWithExt); err == nil {
return "", fmt.Errorf(`notebook %s not found. Did you mean %s?
Local notebook references are expected to contain one of the following
file extensions: [%s]`, literal, literalWithExt, strings.Join(extensions, ", "))
Expand Down

0 comments on commit 7ec20da

Please sign in to comment.