Skip to content

Commit

Permalink
#57 add some comments to the config file template
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyweston committed May 8, 2018
1 parent 37c546a commit f92b6a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ object ConfigFile {
}

private def store(config: ConfigFile): IO[Either[ConfigurationError, Boolean]] = {

def write: Either[ConfigurationError, Boolean] = {
if (!fileExists) {
val writer = new PrintWriter(path)
Expand Down Expand Up @@ -97,6 +96,7 @@ trait ConfigFile {
object Template {
def apply(config: ConfigFile): String =
s"""|
|# valid values "client" or "server" only
|mode = "${config.mode}"
|hosts = ${config.hosts.mkString("[\"", "\", \"", "\"]")}
|
Expand Down

0 comments on commit f92b6a8

Please sign in to comment.