Skip to content

Commit

Permalink
Run spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
hermann-p committed Jul 14, 2023
1 parent b948652 commit 8bdfc5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.campudus.tableaux.database.{LanguageNeutral, LocationType}
import com.campudus.tableaux.database.domain._
import com.campudus.tableaux.database.domain.DisplayInfos.Langtag
import com.campudus.tableaux.database.model.{Attachment, TableauxModel}
import com.campudus.tableaux.database.model.DuplicateRowOptions
import com.campudus.tableaux.database.model.TableauxModel._
import com.campudus.tableaux.router.auth.permission._

Expand All @@ -17,7 +18,6 @@ import scala.concurrent.Future
import scala.util.Try

import java.util.UUID
import com.campudus.tableaux.database.model.DuplicateRowOptions

object TableauxController {

Expand Down Expand Up @@ -287,7 +287,8 @@ class TableauxController(
} yield EmptyObject()
}

def duplicateRow(tableId: TableId, rowId: RowId, duplicateOptions: Option[DuplicateRowOptions])(implicit user: TableauxUser): Future[Row] = {
def duplicateRow(tableId: TableId, rowId: RowId, duplicateOptions: Option[DuplicateRowOptions])(implicit
user: TableauxUser): Future[Row] = {
checkArguments(greaterZero(tableId), greaterZero(rowId))
logger.info(s"duplicateRow $tableId $rowId")
for {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ class TableauxRouter(override val config: TableauxConfig, val controller: Tablea
body.filter(_.containsKey("columns"))
.map(toColumnSeq)
.map(_.get)
val duplicateOptions = DuplicateRowOptions(
val duplicateOptions = DuplicateRowOptions(
getBoolParam("skipConstrainedLinks", context).getOrElse(false),
getBoolParam("annotateSkipped", context).getOrElse(false),
specificColumnsIds
Expand Down

0 comments on commit 8bdfc5c

Please sign in to comment.