Skip to content

Commit 8c5813c

Browse files
committed
lint
1 parent 4d0eea3 commit 8c5813c

File tree

1 file changed

+3
-4
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project

1 file changed

+3
-4
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project/ProjectContextProvider.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,14 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
302302
companion object {
303303
private val logger = getLogger<ProjectContextProvider>()
304304
private val regex = Regex("""bin|build|node_modules|venv|\.venv|env|\.idea|\.conda""", RegexOption.IGNORE_CASE)
305-
private val mega = 1024u * 1024u
305+
private val mega = (1024 * 1024).toULong()
306306
private val tenMb = 10 * mega.toInt()
307307

308308
private fun willExceedPayloadLimit(maxSize: ULong, currentTotalFileSize: ULong, currentFileSize: Long) =
309309
currentTotalFileSize.let { totalSize -> totalSize > (maxSize - currentFileSize.toUInt()) }
310310

311-
private fun isBuildOrBin(fileName: String): Boolean {
312-
return regex.find(fileName) != null
313-
}
311+
private fun isBuildOrBin(fileName: String): Boolean =
312+
regex.find(fileName) != null
314313

315314
fun collectFiles(projectBaseDirectories: Set<VirtualFile>, changeListManager: ChangeListManager): FileCollectionResult {
316315
val maxSize = CodeWhispererSettings.getInstance()

0 commit comments

Comments
 (0)