Commit b5c251c1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

lint issues

parent 3ee32a9f
......@@ -35,7 +35,7 @@ SessionData.prototype.getSearchQuery = function() {
if (result !== undefined) {
result = JSON.parse(result);
}
return result
return result;
};
SessionData.prototype.setShowComments = function(value) {
......
......@@ -157,7 +157,7 @@ SearchDbOverlay.prototype.searchBySingleQuery = function(originalQuery, perfect)
SearchDbOverlay.prototype.searchByQuery = function(originalQuery, perfect) {
var self = this;
var query = self.encodeQuery(SearchDbOverlay.QueryType.SEARCH_BY_QUERY, originalQuery, perfect)
var query = self.encodeQuery(SearchDbOverlay.QueryType.SEARCH_BY_QUERY, originalQuery, perfect);
ServerConnector.getSessionData().setSearchQuery(query);
return new Promise(function(resolve, reject) {
......@@ -224,7 +224,7 @@ SearchDbOverlay.prototype.refresh = function(){
throw new Error("Refreshing shouldn't be called");
};
SearchDbOverlay.prototype.searchByEncodedQuery = function(originalQuery, perfect) {
SearchDbOverlay.prototype.searchByEncodedQuery = function(originalQuery) {
var query = this.decodeQuery(originalQuery);
if (query.type === SearchDbOverlay.QueryType.SEARCH_BY_QUERY) {
return this.searchByQuery(query.query,query.perfect);
......
......@@ -58,9 +58,7 @@ describe('minerva global', function() {
});
it('create with layout', function() {
var project = helper.createProject();
var map = helper.createGoogleMap();
var layout = helper.createLayout();
layout.setInputDataAvailable(false);
......@@ -84,7 +82,6 @@ describe('minerva global', function() {
it('create with layout 2', function() {
var project = helper.createProject();
var map = helper.createGoogleMap();
var layout = helper.createLayout();
layout.setInputDataAvailable(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment