Skip to content

Commit 4ec5b9d

Browse files
committed
cleaned up the code, formatted all the conditions in proper way.
1 parent 4eccbfa commit 4ec5b9d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dummy.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,15 @@ int main(int argc, char *const argv[]) {
137137
return EXIT_FAILURE;
138138
}
139139

140-
if (!options.useFixed) {
141-
options.setInputFile();
140+
if (::errorCount() > 0) {
141+
return EXIT_FAILURE;
142142
}
143143

144144
const IR::P4Program *program = nullptr;
145145
if (options.useFixed) {
146146
program = P4Dummy::parseDummyP4(options);
147147
} else {
148148
options.setInputFile();
149-
if (::errorCount() > 0) {
150-
return EXIT_FAILURE;
151-
}
152149
program = P4::parseP4File(options);
153150
}
154151

0 commit comments

Comments
 (0)