Skip to content

Commit e4b61e3

Browse files
committed
Fix: [warning] Empty array doesn't have type annotation
1 parent 804a83a commit e4b61e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ruby/src/application.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def is_leap_year?
134134
# @rbs date: String
135135
# @rbs return: String
136136
def body(date)
137-
text = []
137+
text = Array.new
138138
text << "# TITLE on #{date}\n\n"
139139
text << "## 1. CATEGORY\n\n"
140140
text << "### 1-1. SUBCATEGORY\n\n"
@@ -171,7 +171,7 @@ def body(date)
171171
# @rbs month: String
172172
# @rbs return: void
173173
def export_template(directory: '', index: '', day: '', month: '')
174-
date = []
174+
date = Array.new
175175
date << "#{day} " unless day.empty?
176176
date << "#{month} #{year}"
177177
filename = File.join(directory, "#{year}#{index}#{day}_#{full_unit}_working_report.md")

0 commit comments

Comments
 (0)