Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 173ff2d

Browse files
committed
Ignore key mangadex_default in config YAML and remove unnecessary
calls to `YAML::Field`
1 parent ae281e2 commit 173ff2d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/config.cr

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,17 @@ require "yaml"
33
class Config
44
include YAML::Serializable
55

6-
@[YAML::Field(key: "port")]
76
property port : Int32 = 9000
8-
9-
@[YAML::Field(key: "library_path")]
107
property library_path : String = \
118
File.expand_path "~/mango/library", home: true
12-
13-
@[YAML::Field(key: "db_path")]
149
property db_path : String = \
1510
File.expand_path "~/mango/mango.db", home: true
16-
1711
@[YAML::Field(key: "scan_interval_minutes")]
1812
property scan_interval : Int32 = 5
19-
20-
@[YAML::Field(key: "log_level")]
2113
property log_level : String = "info"
22-
23-
@[YAML::Field(key: "mangadex")]
2414
property mangadex = Hash(String, String|Int32).new
2515

16+
@[YAML::Field(ignore: true)]
2617
@mangadex_defaults = {
2718
"base_url" => "https://mangadex.org",
2819
"api_url" => "https://mangadex.org/api",

0 commit comments

Comments
 (0)