From 97983e3acc0b6da7a7b86165103a8fe2963930aa Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Thu, 7 Sep 2023 23:46:26 -0400 Subject: [PATCH] Move within if(isReal) --- .../java/edu/wpi/first/wpilibj/DataLogManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java index 685f065f1d1..65450639747 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java @@ -204,11 +204,11 @@ private static String makeLogDir(String dir) { } catch (IOException ex) { // ignored } - } - if (RobotBase.getRuntimeType() == RuntimeType.kRoboRIO) { - DriverStation.reportWarning( - "DataLogManager: Logging to RoboRIO 1 internal storage is not recommended! Plug in a FAT32 formatted flash drive!", - false); + if (RobotBase.getRuntimeType() == RuntimeType.kRoboRIO) { + DriverStation.reportWarning( + "DataLogManager: Logging to RoboRIO 1 internal storage is not recommended! Plug in a FAT32 formatted flash drive!", + false); + } } return Filesystem.getOperatingDirectory().getAbsolutePath(); }