Skip to content

Commit

Permalink
chore: fix static check
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Aug 22, 2024
1 parent 56a97e1 commit 4f653ac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions backend/data/src/main/kotlin/io/tolgee/model/Permission.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,13 @@ class Permission(
],
)
@Column(name = "scopes", columnDefinition = "varchar[]")
var _scopes: Array<Scope>? = null
private var _scopes: Array<Scope>? = null
set(value) {
field = value
if (!value.isNullOrEmpty()) {
this.type = null
}
}
get() {
return field
}

override var scopes: Array<Scope>
get() = getScopesFromTypeAndScopes(this.type, this._scopes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export const ControlsEditorSmall: React.FC<ControlsProps> = ({
<ControlsButton
style={{ gridArea: 'task' }}
data-cy="translations-cell-task-button"
tooltip={t('translation_cell_task')}
onClick={() => onTaskStateChange(!task?.done)}
color={
task?.userAssigned
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export const ControlsTranslation: React.FC<ControlsProps> = ({
style={{ gridArea: 'task' }}
onClick={() => onTaskStateChange(!task?.done)}
data-cy="translations-cell-task-button"
tooltip={<T keyName="translation_cell_task" />}
color={
task?.userAssigned
? task?.done
Expand Down

0 comments on commit 4f653ac

Please sign in to comment.