Skip to content

Commit

Permalink
Some more improvement to the Dart coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedrosa committed Nov 23, 2011
1 parent f80ad6a commit ffa4be1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions luhn.dart
Expand Up @@ -84,19 +84,17 @@ class Luhn {
}

void tapStdin() {
var s = "";
var args = new Options().arguments;
var nRepeats = args.length > 0 ? Math.parseInt(args[0]) : 1;
if (nRepeats > 1) {
var lines = [];
readRawLines((s) => lines.add(s));
for (var i = 0; i < nRepeats; i++) {
for (s in lines) {
for (var s in lines) {
print(new String.fromCharCodes(mask(s)));
}
}
} else {
var a;
readRawLines((a) => print(new String.fromCharCodes(mask(a))));
}
exit(0);
Expand Down

0 comments on commit ffa4be1

Please sign in to comment.