Skip to content

Commit 53c09ce

Browse files
committed
Fix custom timeout env var creation from web
1 parent 99fd627 commit 53c09ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/travis/model/repository/settings.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def valid_timeout?(settings, type)
7676

7777
def max_value(settings, type)
7878
config = Travis.config.settings.timeouts.to_h
79-
key = custom_timeouts?(settings) ? :maximums : :defaults
80-
values = config[key] || {}
79+
values = config[:maximums] || {}
8180

8281
values[type]
8382
end

0 commit comments

Comments
 (0)