Skip to content

Commit

Permalink
more lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Tighearnán Carroll committed May 16, 2023
1 parent 63de9b8 commit f08c0d5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/renderer/detect_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,14 @@ import (
"net/http"
"strings"

"github.com/robherley/guesslang-go/pkg/guesser"
"github.com/robherley/snips.sh/internal/snips"
"github.com/rs/zerolog/log"
)

const (
// MinimumContentGuessLength is the minimum length of the content to use guesslang, smaller content will use the fallback lexer.
MinimumContentGuessLength = 64
)

var (
guesslang *guesser.Guesser
)

func init() {
var err error
if err != nil {
log.Fatal().Err(err).Msg("failed to initialize guesslang")
}
}

// DetectFileType returns the type of the file based on the content and the hint.
// If useGuesser is true, it will try to guess the type of the file using guesslang.
// If the content's mimetype is not detected as text/plain, it returns "binary"
Expand Down

0 comments on commit f08c0d5

Please sign in to comment.