1. fix ameba warning job.cr:428:32 [C] Layout/TrailingWhitespace: Trailing whitespace detected
temp_initrds = [] of String
^ 2. fix no need () for no parameter in
Signed-off-by: Zhang Yu 2134782174@qq.com --- src/lib/job.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index 196516f..7746889 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -333,7 +333,7 @@ class Job @hash.delete("my_uuid") end
- private def get_initialized_keys() + private def get_initialized_keys initialized_keys = [] of String
REQUIRED_KEYS.each do |key| @@ -425,7 +425,7 @@ class Job end
private def get_initrds - temp_initrds = [] of String + temp_initrds = [] of String
if "#{os_mount}" == "initramfs" temp_initrds.concat(initramfs_initrds())