Skip to content

Commit

Permalink
fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yonidavidson committed Nov 8, 2023
1 parent c068f49 commit 020b7c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.tabnineCommon.binary.requests.fileMetadata.FileMetadataRequest
import com.tabnineCommon.chat.commandHandlers.ChatMessageHandler
import com.tabnineCommon.general.DependencyContainer
import java.io.File
import java.util.*

data class BasicContext(
private val fileUri: String? = null,
Expand Down Expand Up @@ -79,7 +80,7 @@ public fun getPredominantWorkspaceLanguage(
}

if (!virtualFile.isDirectory && virtualFile.isValid && includeFilePredicate(virtualFile.path)) {
val fileExtension = virtualFile.extension?.toLowerCase() // Get the file extension
val fileExtension = virtualFile.extension?.lowercase(Locale.ENGLISH) // Get the file extension

if (fileExtension != null && getLanguageFromExtension(fileExtension) != null) {
extensionCount[fileExtension] = extensionCount.getOrDefault(fileExtension, 0) + 1
Expand Down

0 comments on commit 020b7c0

Please sign in to comment.