Skip to content

Commit

Permalink
Use File.separator instead of guessing
Browse files Browse the repository at this point in the history
  • Loading branch information
SS111 committed Aug 13, 2013
1 parent b9b2ff7 commit 671c415
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/com/github/ss111/ConfigHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,7 @@ public static void populateMaps(String path) {
*/
public static String getPrettyName(String input) {

if (input.contains("\\")) {

return input.substring(input.lastIndexOf("\\") + 1);

} else {

return input.substring(input.lastIndexOf("/") + 1);
}
return input.substring(input.lastIndexOf(File.separator) + 1);
}

/**
Expand Down

0 comments on commit 671c415

Please sign in to comment.