Skip to content

Commit

Permalink
t/op/chdir.t: clean up old 'no warnings' declarations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mauke committed Jul 4, 2024
1 parent 8eb13be commit 5e25d6e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions t/op/chdir.t
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ sub clean_env {
}

END {
no warnings 'uninitialized';

# Restore the environment for VMS (and doesn't hurt for anyone else)
@ENV{@magic_envs} = @Saved_Env{@magic_envs};

Expand All @@ -186,9 +184,6 @@ END {


foreach my $key (@magic_envs) {
# We're going to be using undefs a lot here.
no warnings 'uninitialized';

clean_env;
$ENV{$key} = catdir $Cwd, 'op';

Expand Down

0 comments on commit 5e25d6e

Please sign in to comment.