Skip to content

Commit 846cd64

Browse files
committed
perltidy
perltidy
1 parent effe5fa commit 846cd64

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

lib/WeBWorK3/Controller/Settings.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ sub deleteCourseSetting ($c) {
6868
sub checkTimeZone ($c) {
6969
try {
7070
DateTime::TimeZone->new(name => $c->req->json->{timezone});
71-
$c->render(json => {valid_timezone => true });
71+
$c->render(json => { valid_timezone => true });
7272
} catch {
73-
$c->render(json => {valid_timezone => false });
73+
$c->render(json => { valid_timezone => false });
7474
};
7575
}
7676

lib/WeBWorK3/Utils/Settings.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ This checks if the setting given the type, value and list of options (if needed)
5656
=cut
5757

5858
sub isValidSetting ($setting, $value = undef) {
59-
DB::Exception::ParametersNeeded->throw(
60-
message => 'The field \'type\' must be defined for the setting'
61-
) unless defined $setting->{type};
59+
DB::Exception::ParametersNeeded->throw(message => 'The field \'type\' must be defined for the setting')
60+
unless defined $setting->{type};
6261

6362
# If $value is not passed in, use the default_value for the setting
6463
my $val = $value // $setting->{default_value};

src/components/instructor/SingleSetting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ watch(() => multilist_value.value, async () => {
143143
.helptext {
144144
border: 1px solid black;
145145
border-radius: 5px;
146-
padding: 5px 0px;
146+
padding: 5px 0;
147147
background-color: lightyellow;
148148
}
149149
</style>

t/mojolicious/015_course_settings.t

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ $t->delete_ok("/webwork3/api/courses/4/settings/$reduced_scoring->{setting_id}")
107107

108108
# Check for valid and invalid timezones
109109

110-
$t->post_ok('/webwork3/api/global-settings/check-timezone' => json => {timezone => 'America/Chicago'})
111-
->content_type_is('application/json;charset=UTF-8')->status_is(200)
112-
->json_is('/valid_timezone' => true);
113-
114-
$t->post_ok('/webwork3/api/global-settings/check-timezone' => json => {timezone => 'Amrica/Chicago'})
115-
->status_is(200)->json_is('/valid_timezone' => false);
110+
$t->post_ok('/webwork3/api/global-settings/check-timezone' => json => { timezone => 'America/Chicago' })
111+
->content_type_is('application/json;charset=UTF-8')->status_is(200)->json_is('/valid_timezone' => true);
116112

113+
$t->post_ok('/webwork3/api/global-settings/check-timezone' => json => { timezone => 'Amrica/Chicago' })->status_is(200)
114+
->json_is('/valid_timezone' => false);
117115

118116
done_testing;

0 commit comments

Comments
 (0)