Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Feb 22, 2024
1 parent 8298624 commit 11f23ff
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Layouts/SectionRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,7 @@ public class Layouts.SectionRow : Gtk.ListBoxRow {
}

// vala-lint=no-space
if (item.project_id == section.project_id &&
item.section_id == section.id &&
item.parent_id == "") {
if (item.project_id == section.project_id && item.section_id == section.id && item.parent_id == "") {
add_item (item);
}
});
Expand All @@ -354,18 +352,15 @@ public class Layouts.SectionRow : Gtk.ListBoxRow {
Services.EventBus.get_default ().update_inserted_item_map.connect ((_row, old_section_id) => {
var row = (Layouts.ItemRow) _row;

if (row.item.project_id == section.project_id &&
row.item.section_id == section.id) {
if (row.item.project_id == section.project_id && row.item.section_id == section.id) {
if (!items.has_key (row.item.id)) {
items [row.item.id] = row;
update_sort ();
}
}

// vala-lint=no-space
if (row.item.project_id == section.project_id &&
row.item.section_id != section.id &&
old_section_id == section.id) {
if (row.item.project_id == section.project_id && row.item.section_id != section.id && old_section_id == section.id) {
if (items.has_key (row.item.id)) {
items.unset (row.item.id);
}
Expand Down

0 comments on commit 11f23ff

Please sign in to comment.