Skip to content
Snippets Groups Projects
Commit c5e42cc7 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Merge branch 'sonar_suggestions' into 'stable'

no more sonar blockers

fixed 2 remaining sonar blockers

See merge request !5
parents 60df9e85 430a98c0
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ public class ArticlesApi {
} catch (IOException e) {
e.printStackTrace();
}
String slug = slg != null ? slg.slugify(article.getTitle()) : null;
String slug = slg != null ? slg.slugify(article.getTitle()) : "";
i = 0;
do {
......
......@@ -161,12 +161,13 @@ public class ModelsApi {
} while(count > 0);
Slugify slg = null;
String slug = "";
try {
slg = new Slugify();
slug = slg.slugify(model.getTitle());
} catch (IOException e) {
e.printStackTrace();
}
String slug = slg != null ? slg.slugify(model.getTitle()) : null;
i = 0;
do {
......
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