Fix silly error

This commit is contained in:
Matt Green 2016-10-20 14:30:05 -04:00
parent 7d8f909220
commit 1582240dbc
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ impl Runner {
let mut command = Command::new("cmd.exe");
command.arg("/C").arg(cmd);
if updated_paths.len() > 0 {
if !updated_paths.is_empty() {
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
}
@ -63,7 +63,7 @@ impl Runner {
let mut command = Command::new("sh");
command.arg("-c").arg(cmd);
if updated_paths.is_empty() {
if !updated_paths.is_empty() {
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
}