Skip to content

Commit

Permalink
Review widget: fix two small linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomka committed Dec 18, 2024
1 parent 1f20c11 commit d84c5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .travis.jshintexpected
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ django/applications/catmaid/static/js/widgets/reconstruction-sampler.js: line 32

django/applications/catmaid/static/js/widgets/rename-neurons-dialog.js: line 94, col 9, 'self' is defined but never used.

django/applications/catmaid/static/js/widgets/review.js: line 815, col 15, 'sortedSegments' is defined but never used.
django/applications/catmaid/static/js/widgets/review.js: line 1335, col 13, 'self' is defined but never used.

django/applications/catmaid/static/js/widgets/stats_user_analytics.js: line 151, col 11, 'project_id' is defined but never used.

django/applications/catmaid/static/js/widgets/synapse_fractions.js: line 1794, col 9, 'other' is defined but never used.
Expand Down Expand Up @@ -157,4 +154,4 @@ django/applications/catmaid/static/libs/ngpre-wasm/ngpre_wasm.js: line 1817, col
django/applications/catmaid/static/libs/ngpre-wasm/ngpre_wasm.js: line 1850, col 1, 'async functions' is only available in ES8 (use 'esversion: 8').
django/applications/catmaid/static/libs/ngpre-wasm/ngpre_wasm.js: line 2009, col 29, The object literal notation {} is preferable.

117 errors
115 errors
5 changes: 1 addition & 4 deletions django/applications/catmaid/static/js/widgets/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
this.handleDeletedSkeleton = function(nodeId, parentId, skeletonId) {
if (skeletonId == this.currentSkeletonId) {
CATMAID.info('Review widget updated due to skeleton change');
const atnId = SkeletonAnnotations.getActiveNodeId();
this.startSkeletonToReview(skeletonId, undefined, true, () => {
this.current_segment = this.skeleton_segments[this.current_segment.id];
this.goToNodeIndexOfSegmentSequence(this.current_segment_index, true);
Expand Down Expand Up @@ -834,7 +833,7 @@
// Sort segmends in descending order and remove single node segments
// that have been seen in longer segments. This is mainly a concern when
// node filters are in use and single node segments can occur.
var sortedSegments = skeleton_data.sort(function(a, b) {
skeleton_data.sort(function(a, b) {
if (a.nr_nodes > b.nr_nodes) {
return -1;
}
Expand Down Expand Up @@ -1356,8 +1355,6 @@
},
contentID: "review_widget",
createContent: function(content) {
var self = this;

this._content = content;

// Node review container
Expand Down

0 comments on commit d84c5b5

Please sign in to comment.