diff --git a/src/lol.rs b/src/lol.rs
index f03626e4034781f830cd8bf386aa5734f65a7aba..54daf483429979cedea64973cc561715fb4fda3c 100644
--- a/src/lol.rs
+++ b/src/lol.rs
@@ -33,17 +33,14 @@ pub fn print_rainbow(line: &str, freq: f64, seed: f64, spread: f64, invert: bool
             {
                 exit(0);
             }
-        } else {
-            if stdout()
-                .write_all(
-                    format!("{}\x1B[{}m{}\x1B[39m", &c[1], color.to_fg_str(), &c[2]).as_bytes(),
-                )
-                .is_err()
-            {
-                exit(0);
-            }
+        } else if stdout()
+            .write_all(format!("{}\x1B[{}m{}\x1B[39m", &c[1], color.to_fg_str(), &c[2]).as_bytes())
+            .is_err()
+        {
+            exit(0);
         }
     }
+
     if stdout().write_all(&[b'\n']).is_err() {
         exit(0);
     }