From 4f653acf56ced15f7230ffc69c4d6728edf42a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Thu, 22 Aug 2024 09:03:49 +0200 Subject: [PATCH] chore: fix static check --- backend/data/src/main/kotlin/io/tolgee/model/Permission.kt | 5 +---- .../views/projects/translations/cell/ControlsEditorSmall.tsx | 1 - .../views/projects/translations/cell/ControlsTranslation.tsx | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/data/src/main/kotlin/io/tolgee/model/Permission.kt b/backend/data/src/main/kotlin/io/tolgee/model/Permission.kt index 234ef5395c..97a950bb52 100644 --- a/backend/data/src/main/kotlin/io/tolgee/model/Permission.kt +++ b/backend/data/src/main/kotlin/io/tolgee/model/Permission.kt @@ -51,16 +51,13 @@ class Permission( ], ) @Column(name = "scopes", columnDefinition = "varchar[]") - var _scopes: Array? = null + private var _scopes: Array? = null set(value) { field = value if (!value.isNullOrEmpty()) { this.type = null } } - get() { - return field - } override var scopes: Array get() = getScopesFromTypeAndScopes(this.type, this._scopes) diff --git a/webapp/src/views/projects/translations/cell/ControlsEditorSmall.tsx b/webapp/src/views/projects/translations/cell/ControlsEditorSmall.tsx index 719db60465..8c5196cf9d 100644 --- a/webapp/src/views/projects/translations/cell/ControlsEditorSmall.tsx +++ b/webapp/src/views/projects/translations/cell/ControlsEditorSmall.tsx @@ -111,7 +111,6 @@ export const ControlsEditorSmall: React.FC = ({ onTaskStateChange(!task?.done)} color={ task?.userAssigned diff --git a/webapp/src/views/projects/translations/cell/ControlsTranslation.tsx b/webapp/src/views/projects/translations/cell/ControlsTranslation.tsx index 673b76624b..d03327d3c2 100644 --- a/webapp/src/views/projects/translations/cell/ControlsTranslation.tsx +++ b/webapp/src/views/projects/translations/cell/ControlsTranslation.tsx @@ -182,7 +182,6 @@ export const ControlsTranslation: React.FC = ({ style={{ gridArea: 'task' }} onClick={() => onTaskStateChange(!task?.done)} data-cy="translations-cell-task-button" - tooltip={} color={ task?.userAssigned ? task?.done