Skip to content
Snippets Groups Projects
Commit f867935e authored by Chris Nehren's avatar Chris Nehren
Browse files

Put some spacing in an if block because I kept reading the code as

$commhist{$command}->$now which is distinctly not what it actually is.
parent 15f8ba92
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ sub cache_command {
my $command = join(" ", @command);
my $now = time;
if(defined($commhist{$command}) && $commhist{$command}>$now) {
if(defined $commhist{$command} && $commhist{$command} > $now) {
return $commcache{$command};
}
$commcache{$command} = run_command(@command);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment