Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermi committed Jun 16, 2023
1 parent 54359cc commit 646811b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document-ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (info *ImageInfo) CallDocumentAI(predictionEndpoint string) error {
func GetHostName(endpoint *url.URL) string {

host := endpoint.Host
if strings.Index(host, ":") >= 0 {
if strings.Contains(host, ":") {
return host
}

Expand Down

0 comments on commit 646811b

Please sign in to comment.