Replace !x.isEmpty with x.isNotEmpty (#49)
* Update travis.sh to use .analysis_options…
Was accidentally pointing to a non-existing file before.
* Replace uses of !<collection>isEmpty with
… isNotEmpty, as-per Dart style guide.
diff --git a/lib/src/io/interface.dart b/lib/src/io/interface.dart
index b7da9bf..4a2053a 100644
--- a/lib/src/io/interface.dart
+++ b/lib/src/io/interface.dart
@@ -137,7 +137,7 @@
String toString() {
StringBuffer sb = new StringBuffer();
sb.write("FileSystemException");
- if (!message.isEmpty) {
+ if (message.isNotEmpty) {
sb.write(": $message");
if (path != null) {
sb.write(", path = '$path'");
@@ -199,7 +199,7 @@
String toString() {
StringBuffer sb = new StringBuffer();
sb.write("OS Error");
- if (!message.isEmpty) {
+ if (message.isNotEmpty) {
sb..write(": ")..write(message);
if (errorCode != noErrorCode) {
sb..write(", errno = ")..write(errorCode.toString());