Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
huminghao committed Mar 21, 2018
1 parent 4b6019d commit 1de52b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/main/java/cn/hhchat/record/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static Boolean inBlackList(String title) {

public static Boolean load() {
try {
Path path = Paths.get(new URI("file:"+ROOT + "config.json"));
Path path = Paths.get(ROOT + "config.json");
if (Files.exists(path)) {
List<String> configStrList = Files.readAllLines(path);
StringBuilder stringBuilder = new StringBuilder();
Expand All @@ -91,8 +91,6 @@ public static Boolean load() {
}else{
log.error(" => 没有找到配置文件文件");
}
} catch (URISyntaxException e) {
log.error(" => 配置文件路径错误: {}", e.getMessage());
} catch (Exception e) {
log.error(" => 读取配置文件失败: {}", e.getMessage());
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/hhchat/record/model/DreamItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String toMD(User user) {
}

// add introduce
sb.append(this.introduce);
sb.append(this.introduce).append(" ");
// add tags
if(this.privateDream){
sb.append(MarkdownUtil.code("私有"));
Expand Down

0 comments on commit 1de52b1

Please sign in to comment.