Skip to content

Commit 5e25d6e

Browse files
committed
t/op/chdir.t: clean up old 'no warnings' declarations
The test code has changed over the years: The literal undefs have been removed and other parts have been moved into helper functions, so the lexical `no warnings 'uninitialized'` declarations no longer serve any purpose.
1 parent 8eb13be commit 5e25d6e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

t/op/chdir.t

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ sub clean_env {
174174
}
175175

176176
END {
177-
no warnings 'uninitialized';
178-
179177
# Restore the environment for VMS (and doesn't hurt for anyone else)
180178
@ENV{@magic_envs} = @Saved_Env{@magic_envs};
181179

@@ -186,9 +184,6 @@ END {
186184

187185

188186
foreach my $key (@magic_envs) {
189-
# We're going to be using undefs a lot here.
190-
no warnings 'uninitialized';
191-
192187
clean_env;
193188
$ENV{$key} = catdir $Cwd, 'op';
194189

0 commit comments

Comments
 (0)