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

no more sonar blockers

parent 06322f8e
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