From 7f37e72a68a5219b5dd28a4ff7a4e2bb47d39cd0 Mon Sep 17 00:00:00 2001 From: ndelanou Date: Mon, 14 Feb 2022 10:11:33 +0100 Subject: [PATCH] Remove unnecessary null check --- lib/src/guid.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/src/guid.dart b/lib/src/guid.dart index 10fbb350..dbf96d98 100644 --- a/lib/src/guid.dart +++ b/lib/src/guid.dart @@ -19,10 +19,6 @@ class Guid { Guid.empty() : this._internal(new List.filled(16, 0)); static List _fromMacString(String input) { - if (input == null) { - throw new ArgumentError("Input was null"); - } - input = _removeNonHexCharacters(input); final bytes = hex.decode(input); @@ -34,10 +30,6 @@ class Guid { } static List _fromString(String input) { - if (input == null) { - throw new ArgumentError("Input was null"); - } - input = _removeNonHexCharacters(input); final bytes = hex.decode(input);