fix: make sure to handle any numbers of ending newlines
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m52s
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m52s
This commit is contained in:
@@ -2,6 +2,7 @@ package adapters
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -118,6 +119,7 @@ func (l *LocalFsAdapter) readFile(path string, root string) (*Entry, error) {
|
||||
if err == nil {
|
||||
content = parsedContent
|
||||
} else {
|
||||
fmt.Println(err)
|
||||
// Fallback to raw content on parsing error
|
||||
content = fileContent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user