Skip to content

Commit

Permalink
Fixed the style failure.
Browse files Browse the repository at this point in the history
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
  • Loading branch information
antima-gupta committed Apr 12, 2022
1 parent 7ddf5d2 commit c9be2ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/win32/taskscheduler/time_calc_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@ def extra_days(days_count, month_count, year_count, init_month, init_year)
# time_details("PT3S") #=> {sec: 3}
#
def time_details(time_str)

tm_detail = {}
if time_str.to_s != ""
# raising exception if time is not a string
raise TypeError.new("TypeError: Inccorrect Type please pass input value as a String.") unless time_str.is_a? String

# time_str will be like "PxxYxxMxxDTxxHxxMxxS"
# Ignoring 'P' and extracting date and time
dt, tm = time_str[1..-1].split("T")
Expand Down

0 comments on commit c9be2ec

Please sign in to comment.