]> sigrok.org Git - pulseview.git/blobdiff - main.cpp
Random simplifications, cosmetics/whitespace/consistency fixes.
[pulseview.git] / main.cpp
index 2119b81e50d778daf1ca3e2b6ba4fc09bd8b3f97..690a559c29e9a8952b74e2a840475b227650d5b3 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -136,10 +136,11 @@ int main(int argc, char *argv[])
        if (argc - optind > 1) {
                fprintf(stderr, "Only one file can be opened.\n");
                return 1;
-       } else if (argc - optind == 1) {
-               open_file = argv[argc - 1];
        }
 
+       if (argc - optind == 1)
+               open_file = argv[argc - 1];
+
        // Initialise libsigrok
        context = sigrok::Context::create();
 #ifdef ANDROID