Skip to content

Commit

Permalink
More Scalafix (#2887)
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii authored Sep 28, 2023
1 parent 0550c04 commit 5ba9c3b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import io.getquill.context.{Context, ExecutionInfo}
import io.getquill.context.cassandra.{CassandraRowContext, CqlIdiom}
import io.getquill.context.qzio.ZioContext
import io.getquill.util.Messages.fail
import io.getquill.util.ContextLogger
import zio.stream.ZStream
import zio.{Chunk, ChunkBuilder, ZEnvironment, ZIO}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.datastax.oss.driver.api.core.cql.{BoundStatement, Row}
import io.getquill.context.cassandra.{CassandraRowContext, CqlIdiom}
import io.getquill.context.qzio.ZioContext
import io.getquill.context.{Context, ExecutionInfo}
import io.getquill.util.ContextLogger
import io.getquill.{CassandraZioContext, NamingStrategy}
import zio.stream.ZStream
import zio.{Tag, ZEnvironment, ZIO, ZLayer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object StringUtil {

implicit final class StringExtensions(private val str: String) extends AnyVal {
def snakeToUpperCamel: String = str.split("_").map(_.toLowerCase).map(_.capitalize).mkString
def snakeToLowerCamel = str.split("_").map(_.toLowerCase).map(_.capitalize).mkString.uncapitalize
def snakeToLowerCamel: String = str.split("_").map(_.toLowerCase).map(_.capitalize).mkString.uncapitalize
def lowerCamelToSnake: String = str.split("(?=[A-Z])").mkString("_").toLowerCase
def uncapitalize =
new String(
Expand Down
3 changes: 1 addition & 2 deletions quill-engine/src/main/scala/io/getquill/norm/Normalize.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import io.getquill.ast.StatelessTransformer
import io.getquill.norm.capture.{AvoidAliasConflictApply, DealiasApply}
import io.getquill.ast.Action
import io.getquill.util.Interpolator
import io.getquill.util.Messages.{TraceType, title, trace}
import io.getquill.util.Messages.TraceType.Normalizations
import io.getquill.util.Messages.{TraceType, title}

import scala.annotation.tailrec

Expand Down

0 comments on commit 5ba9c3b

Please sign in to comment.