Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
luisas committed Dec 18, 2024
1 parent 5f32360 commit 26062dd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def keepKeysFromArrayList(arrayList, keysToKeep) {
* @return The total time in minutes as a double.
* @throws IllegalArgumentException if the time string is not in the correct format.
*/
def convertTime(String timeStr) {
def convertTime(String timeStr) {
def pattern = /((?<hours>\d+(\.\d+)?)h)?\s*((?<minutes>\d+(\.\d+)?)m)?\s*((?<seconds>\d+(\.\d+)?)s)?\s*((?<milliseconds>\d+(\.\d+)?)ms)?/
def matcher = timeStr.trim() =~ pattern

Expand Down Expand Up @@ -374,8 +374,8 @@ def keepKeysFromArrayList(arrayList, keysToKeep) {
* @param memory The memory string to be converted.
* @return The memory in gigabytes as a double, or null if the input is invalid.
*/
def convertMemory(String memory) {
if (!memory){
def convertMemory(String memory) {
if (!memory) {
return null
}

Expand Down

0 comments on commit 26062dd

Please sign in to comment.